aboutsummaryrefslogtreecommitdiff
path: root/manage.py
blob: c1e299080b725f0d9b3079cdce2ad0ef4a6362ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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()
bgstack15