Without this, templates will crash as they reference patchwork.<module>
directly.
Also removes the patchwork.wsgi symlink from the root and use the real
file in patchwork.wsgi.conf instead, as suggested by Dirk Wallenstein.
Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
import os
import sys
-basedir = os.path.dirname(__file__)
+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'
import django.core.handlers.wsgi
</Directory>
</IfModule>
-WSGIScriptAlias / "/srv/patchwork/patchwork.wsgi"
+WSGIScriptAlias / "/srv/patchwork/lib/apache2/patchwork.wsgi"
WSGIPassAuthorization On
+++ /dev/null
-lib/apache2/patchwork.wsgi
\ No newline at end of file