mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Added wsgi application file
This commit is contained in:
parent
52f5340d4b
commit
dfd0f25f11
1 changed files with 22 additions and 0 deletions
22
dpaste/wsgi.py
Normal file
22
dpaste/wsgi.py
Normal 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()
|
||||
|
Loading…
Reference in a new issue