On Saturday 24 Jan 2009 6:59:57 pm John Baker wrote:
> I need to separate static media roots into "static" (belonging to
> application - css, images etc) and "dynamic" (uploaded by users with
> filefields etc).
>
> The point is that truly "static" media doesn't change and is part of
> the deployed code. Dynamic "static" media is uploaded and kept in a
> separate directory not within the application code.

I have 2 - one is the standard media directory where users upload files and is 
outside the project directory, the other I call sitemedia which is a 
directory under the the project directory with three directories under it - 
css, js and images. This is mapped in apache conf to 
http://myproject.com/sitemedia/ - and it is referred to as /sitemedia/ in the 
templates. This sitemedia directory is also under version control as part of 
the site.

-- 
regards
KG
http://lawgon.livejournal.com

--~--~---------~--~----~------------~-------~--~----~
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