Hacker News new | ask | show | jobs
by neelesh 6042 days ago
"Why serving static files in development has to be a additional setup, as no developer wants to setup a server for serving static files, I am aware of ‘django.static.serve’ but still that is an additional setup, why not create a sample media directory and a url for the same in urls.py" - Because typical deployments don't use django for serving static files?
1 comments

however typical developments do, and this question is about typical development setup
Agree. What we probably need is a nice way to switch between deployment/development setups, possibly by splitting settings.py like rails
the usual trick is to use a local_settings.py.

put all of your environment-specific variables in there, and put 'from local_settings.py import *' at the end of your settings.py