File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 55
66
77def main ():
8- os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "tcf_core.settings" )
8+ os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "tcf_core.settings.dev " )
99 try :
1010 from django .core .management import execute_from_command_line
1111 except ImportError as exc :
Original file line number Diff line number Diff line change 22"""
33Settings package for tcf_core.
44
5- IMPORTANT: Always explicitly set DJANGO_SETTINGS_MODULE environment variable :
6- - Local dev: tcf_core.settings.dev
7- - CI: tcf_core.settings.ci
8- - Production: tcf_core.settings.prod
5+ Environment settings are loaded via DJANGO_SETTINGS_MODULE :
6+ - Local dev: tcf_core.settings.dev (manage.py default)
7+ - CI: tcf_core.settings.ci (set in ci.yml)
8+ - Production: tcf_core.settings.prod (wsgi.py default)
99
1010This file intentionally does NOT import any settings to prevent
1111import side effects that can cause unexpected behavior across environments.
Original file line number Diff line number Diff line change 1111
1212from django .core .wsgi import get_wsgi_application
1313
14- os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "tcf_core.settings" )
14+ os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "tcf_core.settings.prod " )
1515
1616application = get_wsgi_application ()
You can’t perform that action at this time.
0 commit comments