drought_backup/drought/wsgi.py

20 lines
450 B
Python
Raw Normal View History

2018-07-06 05:41:38 +00:00
"""
WSGI config for drought 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.0/howto/deployment/wsgi/
"""
import os
2018-07-09 05:53:07 +00:00
import sys
2018-07-06 05:41:38 +00:00
from django.core.wsgi import get_wsgi_application
2018-07-09 05:53:24 +00:00
sys.path.append("/var/www/p3/drought/current")
2018-07-09 05:53:07 +00:00
2018-07-06 05:41:38 +00:00
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "drought.settings")
application = get_wsgi_application()