We're trying to write some re-usable apps, but face some problems when it comes 
to configuring various bits of the application to run together.

First off it seems reasonable to allow apps to locate their resources using 
settings.py. However, in one instance we're not able to do this.

Specifically when widgets are created the Media subclass doesn't allow for any 
kind of initialization of the included javascript.  So my colleague then has to 
force the app to load resources from a fixed location say /media/myapp/.....

In other places we're able to configure the javascript using a script tag eg

<script ...>var myapp_url_prefix='/notmedia/myapp';</script>

Would it not be a good idea to allow widgets to enter things other than js and 
css in the head section. If 'script' were allowed as an attribute then widgets 
could also be configured relatively simply. There are also other bits of 
configuration which widgets could request eg onload/onunload etc etc.

For most apps there's no real problem in having a fixed resource location, but 
I 
can see cases when proper configuration is desirable.
-- 
Robin Becker

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to