From f6b389233e2d8ac3b4d29322d86fceb2e2de7a37 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Thu, 20 Jan 2011 11:06:19 +0200 Subject: initial commit --- apache/staging.wsgi | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 apache/staging.wsgi (limited to 'apache/staging.wsgi') diff --git a/apache/staging.wsgi b/apache/staging.wsgi new file mode 100644 index 0000000..33e898a --- /dev/null +++ b/apache/staging.wsgi @@ -0,0 +1,12 @@ +import os +import sys +import site + +PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) +site_packages = os.path.join(PROJECT_ROOT, 'env/lib/python2.6/site-packages') +site.addsitedir(os.path.abspath(site_packages)) +sys.path.insert(0, PROJECT_ROOT) +os.environ['DJANGO_SETTINGS_MODULE'] = 'generic_django.settings' + +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() \ No newline at end of file -- cgit v1.3.1