diff options
author | Armin Ronacher <armin.ronacher@active-4.com> | 2011-12-05 22:38:43 -0500 |
---|---|---|
committer | Armin Ronacher <armin.ronacher@active-4.com> | 2011-12-05 22:38:43 -0500 |
commit | 803d20968fea1e25a298aa3b4e670d5670995e0d (patch) | |
tree | 2f90c6b8403e85576d0109a672dccb46598ce115 /manage.py | |
download | stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.gz stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.tar.bz2 stackbin-803d20968fea1e25a298aa3b4e670d5670995e0d.zip |
Added as example app
Diffstat (limited to 'manage.py')
-rw-r--r-- | manage.py | 21 |
1 files changed, 21 insertions, 0 deletions
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() |