Hatta Devel
view examples/hatta.wsgi @ 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 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_args()
14 config.parse_files()
15 config.sanitize()
16 wiki = hatta.Wiki(config)
17 application = wiki.application
