From dfd0f25f11f7738135b0fd1c5bb70fdf60ec0900 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sun, 14 Dec 2014 17:28:28 +0000 Subject: [PATCH] Added wsgi application file --- dpaste/wsgi.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 dpaste/wsgi.py diff --git a/dpaste/wsgi.py b/dpaste/wsgi.py new file mode 100644 index 0000000..b478327 --- /dev/null +++ b/dpaste/wsgi.py @@ -0,0 +1,22 @@ +""" +WSGI config for foobar 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/1.7/howto/deployment/wsgi/ +""" + +import os +# If a 'settings_local' file is present, use it +try: + from dpaste.settings import local + settings_module = "dpaste.settings.local" +except ImportError: + settings_module = "dpaste.settings" + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) + +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() +