aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/wsgi.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-04-07 19:39:52 +0200
committerGravatar GitHub <[email protected]>2019-04-07 19:39:52 +0200
commit7e9133d1ac2b4cb82a9ee0dead37f342933ce8d4 (patch)
tree787f45a1ba5e1f16b9cd7d9e8cdf660573914151 /pydis_site/wsgi.py
parentSet `harakiri = 30`. (diff)
parentAddress review by @jchristgit (diff)
Merge pull request #198 from gdude2002/django+176/project-layout
[Fixes #158, #160, #176, #193] Project layout changes
Diffstat (limited to 'pydis_site/wsgi.py')
-rw-r--r--pydis_site/wsgi.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/pydis_site/wsgi.py b/pydis_site/wsgi.py
new file mode 100644
index 00000000..853e56f1
--- /dev/null
+++ b/pydis_site/wsgi.py
@@ -0,0 +1,16 @@
+"""
+WSGI config for pydis_site 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', 'pydis_site.settings')
+
+application = get_wsgi_application()