ソースを参照

Majwsgi.py pour permettre le fctionnement de plusieurs app django sur le
meme serveur

omassot 7 年 前
コミット
1b484b05e0
1 ファイル変更16 行追加16 行削除
  1. 16 16
      backlog/wsgi.py

+ 16 - 16
backlog/wsgi.py

@@ -1,16 +1,16 @@
-"""
-WSGI config for backlog project.
-
-It exposes the WSGI callable as a module-level variable named ``application``.
-
-For more information on this file, see
-https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
-"""
-
-import os
-
-from django.core.wsgi import get_wsgi_application
-
-os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'backlog.settings')
-
-application = get_wsgi_application()
+"""
+WSGI config for backlog project.
+
+It exposes the WSGI callable as a module-level variable named ``application``.
+
+For more information on this file, see
+https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
+"""
+
+import os
+
+from django.core.wsgi import get_wsgi_application
+
+os.environ["DJANGO_SETTINGS_MODULE"] = "backlog.settings"
+
+application = get_wsgi_application()