From: Jordan Augé Date: Tue, 27 May 2014 13:51:07 +0000 (-0500) Subject: apache: apache config file fixed to run on apache server X-Git-Tag: myslice-1.1~97 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=46792df2603944946524e540f56b6396c01f7805 apache: apache config file fixed to run on apache server --- diff --git a/apache/unfold.wsgi b/apache/unfold.wsgi index 2fa84161..4af2e9f9 100644 --- a/apache/unfold.wsgi +++ b/apache/unfold.wsgi @@ -1,6 +1,10 @@ import os import sys +path = '/var/myslice-f4f' +if path not in sys.path: + sys.path.append(path) + os.environ['DJANGO_SETTINGS_MODULE'] = 'myslice.settings' import django.core.handlers.wsgi diff --git a/myslice/settings.py b/myslice/settings.py old mode 100755 new mode 100644 index 620ab5ba..70740e3d --- a/myslice/settings.py +++ b/myslice/settings.py @@ -42,7 +42,7 @@ except: # when deployed from a package # this code is run by collectstatic too, so we cannot # assume we have ./static present already -HTTPROOT="/usr/share/unfold" +HTTPROOT="/var/myslice-f4f" # the place to store local data, like e.g. the sqlite db DATAROOT="/var/unfold" # if not there, then we assume it's from a devel tree