On 24-08-11 11:32, Kevin Golding wrote:
Basically static files is just an easier way to copy the admin css/js/etc. to the project specific directories rather than serving them directly from the master location?
It is more. I mean, it doesn't just copy the admin css/js, but the css/js from ALL apps.
Every app you have can have a static/ subdirectory and put stuff in it, just like the templates/ directory. And a site that uses the application will automatically get the right js/css without having to grab the correct js/css by hand from five different locations!
What we have, as an example, is a basic "ui" application with basic templates and a couple of javascript libraries (jquery, jquery ui, etc) and basic css. A second app comes with javascript for rendering maps (openlayers + custom js). And we have a bunch of sites that use both these applications, all getting the right js/css out of the box.
Handy! Reinout -- Reinout van Rees http://reinout.vanrees.org/ rein...@vanrees.org http://www.nelen-schuurmans.nl/ "If you're not sure what to do, make something. -- Paul Graham" -- 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.