6 ms·
"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.s
by neelesh 17y 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?
- shabda 17y agohowever typical developments do, and this question is about typical development setup
- neelesh 17y agoAgree. What we probably need is a nice way to switch between deployment/development setups, possibly by splitting settings.py like rails
- suvike 17y agothe 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