source: index.cgi @ e0fb71efb4ad4bde8f19a9654d44f7d8d1c7e439

Revision e0fb71efb4ad4bde8f19a9654d44f7d8d1c7e439, 701 bytes checked in by Stanislaw Klekot <dozzie@…>, 7 years ago (diff)

Replaced resolving dashwiki.wiki.views.handle_wiki with named URLs.

  • Property mode set to 100755
Line 
1#!/usr/bin/python
2
3import sys, os
4
5# the path to this file on the server
6mypath = os.path.dirname(__file__)
7# name of the project
8myproject = 'dashwiki'
9
10# ./python is a directory containing the Django installation and additional
11# Python modules
12#sys.path += ["%s/python" % (mypath)]
13
14# your Django project containing the settings.py
15#sys.path += ["%s/%s" % (mypath, myproject)]
16sys.path += [mypath]
17
18# settings of your django page module
19os.environ['DJANGO_SETTINGS_MODULE'] = '%s.settings' % (myproject)
20
21if __name__ == '__main__':
22  import django.core.handlers.wsgi
23  import wsgiref.handlers
24  application = django.core.handlers.wsgi.WSGIHandler()
25  wsgiref.handlers.CGIHandler().run(application)
Note: See TracBrowser for help on using the repository browser.