index.cgi: aboslute paths for python2.7
authorTero Marttila <terom@fixme.fi>
Sun, 14 Sep 2014 12:55:49 +0300
changeset 54 d8658498f65e
parent 53 158854761213
child 55 eabf155f5327
index.cgi: aboslute paths for python2.7
index.cgi
--- a/index.cgi	Mon Jun 15 02:42:23 2009 +0300
+++ b/index.cgi	Sun Sep 14 12:55:49 2014 +0300
@@ -1,4 +1,4 @@
-#!/usr/bin/python2.5
+#!/usr/bin/python
 # :set filetype=py encoding=utf8
 
 """
@@ -34,7 +34,7 @@
         cgi_handler = wsgiref.handlers.CGIHandler()
 
         # create app handler
-        handler = lookup.PageMapper("pages", templates=template.TemplateLoader("templates"))
+        handler = lookup.PageMapper("/var/www/qmsk.net/pages", templates=template.TemplateLoader("/var/www/qmsk.net/templates", cache_dir="/var/www/qmsk.net/cache/templates"))
 
         # create app
         app = wsgi.Application(handler)