Hello list \o/ Currently, we can attach scripts and css by declaring their urls in Media. It then renders the script and link tags, allowing users to have that outside the form tag in the template, ie. in the HTML head.
A good way to pass a widget's configuration from python to js is to pass them as data- attributes, and make the js pick it up. This works fine for simple key/value options, but not for more complex data structures ie. complete JSON objects. It would be great if we could also add generated css/js to ``{{ form.Media }}``. Thoughts ? Thanks for your time Best regards James -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CALC3KackZYBsC6Y3iwTVMpsBmE1YzBrYU8L-xLpp6yvR94EuGg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.