By default, when you run ./manage.py ...
commands, Django will use the settings file located at djangoproject/frespo/settings.py
.
If your dev environment needs different settings, here's what you should do:
-
Create a
djangoproject/frespo/settings_dev.py
-
Make sure it imports the original settings file (
from settings import *
) -
Override / create new properties on it.
-
Tell django to use
settings_dev
instead ofsettings
There are two ways you can do that:
- set the environment variable
DJANGO_SETTINGS_MODULE=frespo.settings_dev
; or - when running
manage.py
add--settings=frespo.settings_dev
- set the environment variable
-
Remember: you should not commit your settings_dev file.