We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3961bc commit 46388b8Copy full SHA for 46388b8
core/wsgi.py
@@ -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
10
import os
11
+from dotenv import load_dotenv
+load_dotenv()
+
12
from django.core.wsgi import get_wsgi_application
13
14
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", os.getenv(
+ "DJANGO_SETTINGS_MODULE", "core.settings.development"
+))
15
16
application = get_wsgi_application()
17
0 commit comments