Added wsgi application file

This commit is contained in:
Martin Mahner 2014-12-14 17:28:28 +00:00
parent 52f5340d4b
commit dfd0f25f11

22
dpaste/wsgi.py Normal file
View file

@ -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()