Currently my manage.py
file is hardcoded to import my local.py
- development settings file. Is this the 'industry standard' way to set this up? When I deploy to the server do I just change manage.py
to point to my production settings file? Or should I set this up another way?
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
# Hard coded imports local settings file
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project.settings.local")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
Structure:
project/
manage.py
settings/
local.py
shared.py
production.py