diff bns_website/apache/bns.wsgi @ 27:a5e8741452a3

Add path to Django in WSGI file. Use Django's simplesjon module as it will either import the Python system one if it exists, or use the one provided with Django as a fallback. This is needed for the production server, which is running Python 2.5.
author Brian Neal <bgneal@gmail.com>
date Tue, 01 Nov 2011 20:15:21 -0500
parents 6f68f6800843
children f00199f1524c
line wrap: on
line diff
--- a/bns_website/apache/bns.wsgi	Tue Nov 01 19:17:07 2011 -0500
+++ b/bns_website/apache/bns.wsgi	Tue Nov 01 20:15:21 2011 -0500
@@ -8,8 +8,9 @@
 repo = os.path.dirname(website)
 project = os.path.dirname(repo)
 eggs = os.path.join(project, 'eggs')
+django = os.path.join(project, 'django')
 
-sys.path.extend([repo, website])
+sys.path.extend([repo, website, django])
 
 os.environ['PYTHON_EGG_CACHE'] = eggs