Skip to content

Commit 55da011

Browse files
committed
fix(settings): set wsgi default settings to prod
1 parent e9f6dfc commit 55da011

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

manage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def 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:

tcf_core/settings/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"""
33
Settings 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
1010
This file intentionally does NOT import any settings to prevent
1111
import side effects that can cause unexpected behavior across environments.

tcf_core/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
from 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

1616
application = get_wsgi_application()

0 commit comments

Comments
 (0)