horizon/openstack_dashboard/wsgi/django.wsgi
Gabriel Hurley 86764391bc Updated the django.wsgi file for devstack.
Change-Id: Ie651717806208f0ed7e045071599d71ca05c7fbe
2012-02-29 01:37:37 -08:00

16 lines
416 B
Python

import logging
import os
import sys
import django.core.handlers.wsgi
from django.conf import settings
# Add this file path to sys.path in order to import settings
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '../..'))
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
sys.stdout = sys.stderr
DEBUG = False
application = django.core.handlers.wsgi.WSGIHandler()