Files
fablib-api/manage.py
T
Kenneth Reitz 86c83e2f7f hey it works
2013-08-16 03:12:41 -04:00

18 lines
271 B
Python
Executable File

#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask.ext.script import Manager
from fablib import app, db
manager = Manager(app)
@manager.command
def syncdb():
"""Initializes the database."""
db.create_all()
if __name__ == "__main__":
manager.run()