Skip to content

Commit c1bdd90

Browse files
author
seb.bacon
committed
wsgi handler
git-svn-id: https://constituencyvolunteernetwork.googlecode.com/svn/trunk@3 220e2412-9961-11de-a05d-3bd73e269465
1 parent aea571a commit c1bdd90

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

wsgi_handler.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import sys
2+
import os
3+
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
4+
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
5+
6+
import django.core.handlers.wsgi
7+
application = django.core.handlers.wsgi.WSGIHandler()
8+

0 commit comments

Comments
 (0)