Hatta Numbered Lists Branch
view examples/hatta.wsgi @ 726:763a2836e4d3
Don't parse args in WSGI script
| author | Ben |
|---|---|
| date | Sat Dec 12 17:33:47 2009 +0100 (2009-12-12) |
| parents | 45348adfeb05 |
| children |
line source
1 #!/usr/bin/python
2 # -*- coding: utf-8 -*-
4 import sys
5 # XXX Uncomment and edit this if hatta.py is not installed in site-packages
6 #sys.path.insert(0, "/path/to/dir/with/hatta/")
7 import hatta
9 config = hatta.WikiConfig(
10 pages_path='/path/to/pages/', # XXX Edit this!
11 cache_path='/path/to/cache/', # XXX Edit this!
12 )
13 config.parse_files()
14 config.sanitize()
15 wiki = hatta.Wiki(config)
16 application = wiki.application
