diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-10 15:55:37 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-10 15:55:37 -0400 |
commit | e40553e1ad1155b380a41588174ec80270a22f0c (patch) | |
tree | 24f70a2efd6378a96b09a5ddb6ff88986907a621 /django.wsgi | |
parent | 6fd183a0e5ac47491ed7a8ffb2c36177575c9cc4 (diff) | |
download | askbot-e40553e1ad1155b380a41588174ec80270a22f0c.tar.gz askbot-e40553e1ad1155b380a41588174ec80270a22f0c.tar.bz2 askbot-e40553e1ad1155b380a41588174ec80270a22f0c.zip |
created more automatic django.wsgi file and fixed an error that I made when removing the authetication module again
Diffstat (limited to 'django.wsgi')
-rw-r--r-- | django.wsgi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/django.wsgi b/django.wsgi new file mode 100644 index 00000000..83274865 --- /dev/null +++ b/django.wsgi @@ -0,0 +1,12 @@ +import os +import sys + +current_directory = os.path.dirname(__file__) +parent_directory = os.path.dirname(current_directory) +module_name = os.path.basename(current_directory) + +sys.path.append(parent_directory) +sys.path.append(current_directory) +os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % module_name +import django.core.handlers.wsgi +application = django.core.handlers.wsgi.WSGIHandler() |