aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/wsgi.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-05 18:24:32 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-05 18:24:32 +0100
commitab8b798547e82ca79882ba28b1920077c803425f (patch)
treeb28a9005d05dfd2c9da62351671bf2aa6e37f7dc /pydis_site/wsgi.py
parent[#158 #160] Automatically run collectstatic in containers/setup script (diff)
pysite -> pydis_site
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()