From 10b194427d5a14f56257db1eb865b4f2024f414c Mon Sep 17 00:00:00 2001 From: Prabhu Ramachandran Date: Mon, 14 Nov 2011 11:52:09 +0530 Subject: ENH: Adding wsgi file to serve with Apache. --- apache/django.wsgi | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apache/django.wsgi (limited to 'apache/django.wsgi') diff --git a/apache/django.wsgi b/apache/django.wsgi new file mode 100644 index 0000000..ec6a31f --- /dev/null +++ b/apache/django.wsgi @@ -0,0 +1,13 @@ +import os +from os.path import dirname, abspath +import sys + +# This file is inside online_test/apache/django.wsgi +MY_DIR = abspath(dirname(dirname(dirname(__file__)))) +if MY_DIR not in sys.path: + sys.path.append(MY_DIR) + +os.environ['DJANGO_SETTINGS_MODULE'] = 'online_test.settings' + +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() \ No newline at end of file -- cgit