[Django]-Difference Between Satchmo's local_settings.py and settings.py



The local_settings.py is only for on your local development system where it extends settings.py. On your deployment server, settings.py is used only without local_settings.py.

One recommendation is that local_settings.py is not included in your repository, so that each developer can have their own and so that it is not used on the deployment server.

Checkout these articles for more information:

  1. Extending Django settings.py File
  2. Extending Settings Variables with local_settings.py in Django
  3. Django settings.py for development and production
  4. A Different Approach to local_settings.py


The idea is that settings.py contains all the settings you actually need to run your project. local_settings.py is for if you need to override any of them locally, for instance in development. For example, you might have different database passwords, or template paths, etc.

The answer to your question is to put new settings into settings.py, though.

Leave a comment