At my page scripts are only executed, when the nonce tag is included (because of CSP settings).
That causes at the admin pages, that scripts are not working.
Therefore I am overwriting now all the admin templates, for example from:
<script src="{% static 'admin/js/nav_sidebar.js' %}" defer></script>
to
<script src="{% static 'admin/js/nav_sidebar.js' %}" nonce="{{request.csp_nonce}}" defer></script>
Is there an easier way to do this? Deactivate CSP on the admin pages or somehow tell Django to add Nonce to all scripts?
Thanks