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()) 

More like this

  1. db_dump.py - for dumpping and loading data from database by limodou 6 years, 3 months ago
  2. Django app WSGI by ofalk 4 years ago
  3. django_production.wsgi by vemubalu 2 years, 2 months ago
  4. FeinCMS inherit region content from translated language by schmidsi 3 years, 1 month ago
  5. PostgreSQL ON DELETE CASCADE by mjt 3 years, 7 months ago

Comments

(Forgotten your password?)