aboutsummaryrefslogtreecommitdiffstats
path: root/example/wsgi.py
diff options
context:
space:
mode:
authorAymeric Augustin2013-10-14 22:46:30 +0200
committerAymeric Augustin2013-10-14 23:30:04 +0200
commit10520905180387d0c51eb32907e53b79f4030190 (patch)
tree9bda601f7d1f8e955021995ce4b7e391d6c69eb0 /example/wsgi.py
parent5dd6de619b7b4fa5212c79f60a59e6d207ca5c6a (diff)
downloaddjango-debug-toolbar-10520905180387d0c51eb32907e53b79f4030190.tar.bz2
Update the example app with a modern project template.
Diffstat (limited to 'example/wsgi.py')
-rw-r--r--example/wsgi.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/example/wsgi.py b/example/wsgi.py
new file mode 100644
index 0000000..f87faba
--- /dev/null
+++ b/example/wsgi.py
@@ -0,0 +1,7 @@
+"""WSGI config for example project."""
+
+import os
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")
+
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()