Commits

Tom von Schwerdtner committed e538d6e

virtualenv setup

Comments (0)

Files changed (1)

 import os, sys
+import site
+
 
 PROJECT_HOME = os.path.dirname(os.path.abspath('%s/../' % __file__))
+
+# Add virtualenv environment
+site.addsitedir('%s/env/lib/python2.6/site-packages/' % PROJECT_HOME)
+
 sys.path[1:1] = ['%s/config' % PROJECT_HOME, '%s/app' % PROJECT_HOME, '%s/lib' % PROJECT_HOME]
 
 # TODO: is this a good idea?
 
 import django.core.handlers.wsgi
 
-application = django.core.handlers.wsgi.WSGIHandler()
+application = django.core.handlers.wsgi.WSGIHandler()