Closed mihajenko closed 10 years ago
This is usually solved with another settings file, e.g. settings_production.py that imports settings.py and overrides variables like DEBUG etc. For development you still use settings.py, whereas in production environment you use settings_production.py.
Debug mode is set to False. In order for the app to reach static files, if production is running django's server, restart it with "manage.py runserver --insecure", in order to skip static files configuration. On any other server setup, this needs to be done first, otherwise re-enable debug mode.