changeset 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 20dc7be59c85 ced908af601a
files bns_website/apache/bns.wsgi bns_website/settings/base.py
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
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
 
--- a/bns_website/settings/base.py	Tue Nov 01 19:17:07 2011 -0500
+++ b/bns_website/settings/base.py	Tue Nov 01 20:15:21 2011 -0500
@@ -1,6 +1,6 @@
 # Django base settings for bns_website project.
 
-import json
+import django.utils.simplejson as json
 import os
 
 PROJECT_PATH = os.path.abspath(os.path.join(os.path.split(__file__)[0], '..'))