Integrating Django with ToofPy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Put the contents below into a file DjangoWsgiWrapper.py and put it in your 
# WSGI Tool directory
# If you want to pre-integrate it (ie not have it picked up from the 
# filesystem), then add "import DjangoWsgiWrapper" to the _initopts function 
# in WSGIMainTool (WSGITool.py)

import os
from django.core.handlers.wsgi import WSGIHandler

# replace with your settings file
os.environ['DJANGO_SETTINGS_MODULE'] = "apps.settings" 

# replace "app" with the name of your app. 
# You will access django by going to http://yoursite/WSGI/app
registerWSGI('app', WSGIHandler()) 

Comments

(Forgotten your password?)

You may use Markdown syntax here, but raw HTML will be removed.