From 46792df2603944946524e540f56b6396c01f7805 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jordan=20Aug=C3=A9?= Date: Tue, 27 May 2014 08:51:07 -0500 Subject: [PATCH] apache: apache config file fixed to run on apache server --- apache/unfold.wsgi | 4 ++++ myslice/settings.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) mode change 100755 => 100644 myslice/settings.py 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 -- 2.43.0