Follow these steps to configure the project settings:
- In the myproject directory, create a settings Python module with the following files:
- __init__.py makes the settings directory a Python module.
- _base.py for shared settings
- dev.py for development settings
- test.py for testing settings
- staging.py for staging settings
- production.py for production settings
- Copy the contents of settings.py, which was automatically created when you started a new Django project, to settings/_base.py. Then, delete settings.py.
- Change the BASE_DIR in the settings/_base.py to point one level up. It should first look as follows:
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
After changing it, it should look like the ...