0

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?

null
  • 1,137
  • 2
  • 11
  • 29

1 Answers1

1

Why don't you configure a different STATIC_ROOT for your development and production machine?

Django's docs are really comprehensive in this regard.

Community
  • 1
  • 1
arie
  • 18,737
  • 5
  • 70
  • 76