Form media, expose raw urls to templates

20 views
Skip to first unread message

crodjer

unread,
Jun 28, 2011, 8:20:58 AM6/28/11
to django-d...@googlegroups.com
The form media widget should also allow an access to the direct javascript
urls (Instead of just rendering it directly) so that it can be used with javascript
loaders (I perticularly use headjs which supports parallel loading of javascripts.
But for using it I always have to write custom form methods as accessing private
variables (._js) is reastricted. 

I finally set about and added few lines to the form media widget. The patch:

I think that django should allow an access to the media (at least js) as the html
rendring required is not always the way the form does.

If there is a simpler way to achieve this, please suggest.
Reply all
Reply to author
Forward
0 new messages