Reputation:
I'm developing a site locally on my mac, and intend to deploy on Ubuntu. Usually I would put static content in /home/my_site/static/ (same for ./templates/) but on mac the /home/ directory is unwriteable. So if I want to keep my settings files consistant, is there anything wrong with putting my static files in /srv/static/ for example?
I've been looking at: http://www.pathname.com/fhs/pub/fhs-2.3.html (Filesystem standards) and https://docs.djangoproject.com/en/1.2/howto/deployment/modpython/#serving-media-files for a best practice solution, but I can't find one. Which suggests it doesn't necessarily matter where the files go?
Upvotes: 0
Views: 314
Reputation: 18972
Why don't you configure a different STATIC_ROOT
for your development and production machine?
Django's docs are really comprehensive in this regard.
Upvotes: 1