Julien Danjou c01ebad629 Fix sys.path in WSGI file
This allows the inclusion of dashboard.* modules correctly, which is needed
to run the app.

Change-Id: I7db42657b0253871fa28fb4a1c649182254811ca
Signed-off-by: Julien Danjou <julien.danjou@enovance.com>
2011-12-02 09:42:25 +01:00

16 lines
406 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'] = 'dashboard.settings'
sys.stdout = sys.stderr
DEBUG = False
application = django.core.handlers.wsgi.WSGIHandler()