summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-04-11 21:47:56 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-04-11 21:47:56 +0200
commit978f1a4999937a56bd3861a219bb2d9082ba5de6 (patch)
tree69a55977f09000e1c867a2c253c7018050951e72 /index.py
parent0567318344330295512176569a84afc9748d79c5 (diff)
downloadkosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.tar.gz
kosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.tar.bz2
kosten-978f1a4999937a56bd3861a219bb2d9082ba5de6.zip
404 page in jinja
Diffstat (limited to '')
-rwxr-xr-xindex.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.py b/index.py
index c3ad9fa..1426022 100755
--- a/index.py
+++ b/index.py
@@ -1,4 +1,6 @@
#!/usr/bin/python
+# -*- coding: utf-8 -*-
+
import sys
from app import app, db
@@ -12,5 +14,7 @@ if cmd == "create":
db.create_all()
elif cmd == "drop":
db.drop_all()
+elif cmd == "compile":
+ app.jinja_env.compile_templates("comp", zip = None)
else:
app.run()