Hatta Devel
view examples/hatta.fcg @ 887:7540675ffe4e
re-merge the fix for #79
| author | Radomir Dopieralski <sheep-devel@sheep.art.pl> |
|---|---|
| date | Sun Feb 05 09:48:12 2012 +0100 (3 months ago) |
| parents | 02c0d780d0b7 |
| children |
line source
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
4 import flup
5 import sys
6 # XXX Uncomment and edit this if hatta.py is not installed in site-packages
7 #sys.path.insert(0, "/path/to/dir/with/hatta/")
8 import hatta
10 config = hatta.WikiConfig(
11 pages_path='/path/to/pages/', # XXX Edit this!
12 cache_path='/path/to/cache/', # XXX Edit this!
13 )
14 config.parse_args()
15 config.parse_files()
16 config.sanitize()
17 wiki = hatta.Wiki(config)
18 app = wiki.application
20 # XXX Uncomment this, if you are using fastcgi on / on Lighttpd
21 #def app(env, start):
22 # env['PATH_INFO'] = env['SCRIPT_NAME'] + env['PATH_INFO']
23 # env['SCRIPT_NAME'] = ''
24 # return wiki.application(env, start)
26 flup.server.fcgi.WSGIServer(app).run()
