Re: Form.Media: render inline css/js

2016-10-07 Thread James Pic
Nice one Matthias ! We might have something similar, in dal, discussion is undergoing: https://github.com/yourlabs/django-autocomplete-light/issues/756#issuecomment-252368089 Currently ddf also renders json in a script tag in the middle of the form, i think I might take the same direction as you

Re: Form.Media: render inline css/js

2016-09-30 Thread Matthias Kestenholz
On Thursday, September 29, 2016 at 4:11:04 PM UTC+2, is_null wrote: > > Thanks for the heads up, a similar ticket has been closed as wontfix, > because it isn't compatible with CSP: > https://code.djangoproject.com/ticket/13978 > > While I'm all against inline scripts, I have a use case which s

Re: Form.Media: render inline css/js

2016-09-29 Thread James Pic
Thanks for the heads up, a similar ticket has been closed as wontfix, because it isn't compatible with CSP: https://code.djangoproject.com/ticket/13978 While I'm all against inline scripts, I have a use case which seems be legitimate: https://github.com/yourlabs/django-autocomplete-light/pull/733/

Re: Form.Media: render inline css/js

2016-09-29 Thread Tim Graham
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/22