# HG changeset patch # User Brian Neal # Date 1320196521 18000 # Node ID a5e8741452a3bd5d8acf67970fdbe87ae5c93177 # Parent 6f68f680084341cebbce2c4b1524878b69489b8d 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. diff -r 6f68f6800843 -r a5e8741452a3 bns_website/apache/bns.wsgi --- 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 diff -r 6f68f6800843 -r a5e8741452a3 bns_website/settings/base.py --- 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], '..'))