Mercurial > public > sg101
diff gpp/apache/sg101.wsgi @ 511:5794e3414596
Converted production environment to a virtualenv; had to tweak some paths and the .wsgi file accordingly.
I also added packages in preparation for working with Celery, so I updated the requirements file according to production.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 11 Dec 2011 19:50:32 +0000 |
parents | 1a09a7bea000 |
children |
line wrap: on
line diff
--- a/gpp/apache/sg101.wsgi Thu Dec 08 02:25:22 2011 +0000 +++ b/gpp/apache/sg101.wsgi Sun Dec 11 19:50:32 2011 +0000 @@ -1,14 +1,18 @@ import os import sys +import site + OFFLINE = False -sys.path.append('/home/var/django-sites/sg101') -sys.path.append('/home/var/django-sites/sg101/3rdparty') -sys.path.append('/home/var/django-sites/sg101/sg101-trunk') -sys.path.append('/home/var/django-sites/sg101/sg101-trunk/gpp') +site.addsitedir('/home/var/django-sites/virtualenvs/sg101/lib/python2.5/site-packages') -os.environ['PYTHON_EGG_CACHE'] = '/home/var/django-sites/sg101/eggs/' +sys.path.append('/home/var/django-sites/virtualenvs/sg101/sg101') +sys.path.append('/home/var/django-sites/virtualenvs/sg101/sg101/gpp') +sys.path.append('/home/var/django-sites/virtualenvs/sg101/sg101/tools') + +os.environ['PYTHON_EGG_CACHE'] = '/home/var/django-sites/virtualenvs/sg101/eggs' +os.environ['CELERY_LOADER'] = 'django' def offline_handler(environ, start_response):