summaryrefslogtreecommitdiffstats
path: root/lib/apache2
diff options
context:
space:
mode:
Diffstat (limited to 'lib/apache2')
-rw-r--r--lib/apache2/patchwork.mod_python.conf2
-rw-r--r--lib/apache2/patchwork.wsgi3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/apache2/patchwork.mod_python.conf b/lib/apache2/patchwork.mod_python.conf
index 6395738..c46f86c 100644
--- a/lib/apache2/patchwork.mod_python.conf
+++ b/lib/apache2/patchwork.mod_python.conf
@@ -7,7 +7,7 @@ NameVirtualHost patchwork.example.com:80
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
- PythonPath "['/srv/patchwork/apps', '/srv/patchwork/lib/python'] + sys.path"
+ PythonPath "['/srv/patchwork', '/srv/patchwork/lib/python'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE settings
</Location>
diff --git a/lib/apache2/patchwork.wsgi b/lib/apache2/patchwork.wsgi
index 869bb9d..52feb58 100644
--- a/lib/apache2/patchwork.wsgi
+++ b/lib/apache2/patchwork.wsgi
@@ -12,8 +12,7 @@ import sys
basedir = os.path.join(
os.path.dirname(__file__), os.path.pardir, os.path.pardir)
sys.path.append(basedir)
-sys.path.append(os.path.join(basedir, 'apps'))
-os.environ['DJANGO_SETTINGS_MODULE'] = 'apps.settings'
+os.environ['DJANGO_SETTINGS_MODULE'] = 'patchwork.settings.prod'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()