Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 722 Bytes

custom_settings.md

File metadata and controls

19 lines (11 loc) · 722 Bytes

Customize settings file

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 of settings

    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
  • Remember: you should not commit your settings_dev file.