I'm not exactly sure what your proposal entails. Could you give some 
psuedo-code to demonstrate what you have in mind?

By the way, there is some discussion that it might be best to replace the 
Media class, although it's not entirely clear how to do that: 
https://code.djangoproject.com/ticket/22298.

On Thursday, September 29, 2016 at 9:28:23 AM UTC-4, is_null wrote:
>
> 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/1020b988-e5b0-4c05-91a2-37f9e9f180bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to