From 803d20968fea1e25a298aa3b4e670d5670995e0d Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 5 Dec 2011 22:38:43 -0500 Subject: Added as example app --- manage.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 manage.py (limited to 'manage.py') diff --git a/manage.py b/manage.py new file mode 100644 index 0000000..c1e2990 --- /dev/null +++ b/manage.py @@ -0,0 +1,21 @@ +from flask.ext.script import Manager +from pastebin import app, db + + +manager = Manager(app) + + +@manager.command +def initdb(): + """Creates all database tables.""" + db.create_all() + + +@manager.command +def dropdb(): + """Drops all database tables.""" + db.drop_all() + + +if __name__ == '__main__': + manager.run() -- cgit