Skip to content

Commit 46388b8

Browse files
committed
fix: change wsgi
1 parent d3961bc commit 46388b8

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

core/wsgi.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
"""
2-
WSGI config for config project.
3-
4-
It exposes the WSGI callable as a module-level variable named ``application``.
5-
6-
For more information on this file, see
7-
https://docs.djangoproject.com/en/5.0/howto/deployment/wsgi/
8-
"""
9-
101
import os
112

3+
from dotenv import load_dotenv
4+
load_dotenv()
5+
126
from django.core.wsgi import get_wsgi_application
137

14-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
8+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", os.getenv(
9+
"DJANGO_SETTINGS_MODULE", "core.settings.development"
10+
))
1511

1612
application = get_wsgi_application()
1713

0 commit comments

Comments
 (0)