summaryrefslogtreecommitdiff
path: root/manage.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xmanage.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/manage.py b/manage.py
new file mode 100755
index 0000000..9b26212
--- /dev/null
+++ b/manage.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python2
+# -*- coding: utf-8 -*-
+
+import sys
+
+from app import app, db
+from flask.ext.script import Manager
+
+manager = Manager(app)
+
+@manager.command
+def create():
+ db.create_all()
+
+@manager.command
+def drop():
+ db.drop_all()
+
+@manager.command
+def compile():
+ """Compiles all templates."""
+ app.jinja_env.compile_templates('comp', zip = None)
+
+if __name__ == "__main__":
+ manager.run(default_command="runserver")