diff options
author | Prabhu Ramachandran | 2011-11-14 11:52:09 +0530 |
---|---|---|
committer | Prabhu Ramachandran | 2011-11-14 11:52:09 +0530 |
commit | 10b194427d5a14f56257db1eb865b4f2024f414c (patch) | |
tree | 587a2932c297bd261105ae3ddcc110a52ce876da | |
parent | 428c2f36e5699ecda6ecb179ab3d87c373984998 (diff) | |
download | online_test-10b194427d5a14f56257db1eb865b4f2024f414c.tar.gz online_test-10b194427d5a14f56257db1eb865b4f2024f414c.tar.bz2 online_test-10b194427d5a14f56257db1eb865b4f2024f414c.zip |
ENH: Adding wsgi file to serve with Apache.
-rw-r--r-- | apache/django.wsgi | 13 |
1 files changed, 13 insertions, 0 deletions
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 |