I would say template tags are the nice little framework for doing this. you could create a tags the looks in a certain path for files ending in '.js' based on the model or application and join it with settings.MEDIA_URL.. have it return a string of text or a list of strings that you can iterate over in the template.
the you can have something like {% get_js_for_object myobject %} secondarly, some JavaScript frameworks have built in dependency loaders that will fetch scripts based on what is on the page of specified. mootools does. I think Dojo does. I'm sure others do. If you are more comfortable with javascript than python/django that might be something to look into. On Nov 17, 4:15 am, Thierry <thierryschellenb...@gmail.com> wrote: > Other frameworks (Symfony) offer simple hooks for managing js > includes. > In Django its simply a line of template code. > > This is annoying for managing JS dependencies. > > Did anyone write a nice little framework for managing js? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.