summaryrefslogtreecommitdiff
path: root/apache
diff options
context:
space:
mode:
Diffstat (limited to 'apache')
-rw-r--r--apache/django.wsgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/apache/django.wsgi b/apache/django.wsgi
index 6227ee2..16758e6 100644
--- a/apache/django.wsgi
+++ b/apache/django.wsgi
@@ -1,5 +1,6 @@
import os, sys
-sys.path.append('/var/local/django/chimere/')
-os.environ['DJANGO_SETTINGS_MODULE'] = 'mychimere_project.settings'
+MAIN_PATH = os.path.realpath(os.path.dirname(__file__)) + "/.."
+sys.path.append(MAIN_PATH)
+os.environ['DJANGO_SETTINGS_MODULE'] = 'mychimere_project.settings' # change with your project name
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()