]> git.ozlabs.org Git - patchwork/blobdiff - lib/apache2/patchwork.wsgi
helpers: Change patchwork.wsgi to include the apps/ dir in sys.path
[patchwork] / lib / apache2 / patchwork.wsgi
index 0488b48f39717770e25c60ccdeb3db3544fd03dd..869bb9de6c147e73dadc5ab998905a8ddb2948fb 100644 (file)
@@ -9,8 +9,10 @@
 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