You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Django allows to associate different files – like stylesheets and scripts – with the forms and widgets that require those assets, using the Media class described here.
I have looked at the source code for Django's widgets.py, but I can't find an elegant way to add the nonce to the rendered <script> tag.
Could you suggest a workaround ? Or is this something that should be addressed in Django itself ?