Files
Kenneth Reitz a2d4dd0420 managers!
2013-01-25 21:10:10 -05:00

18 lines
270 B
Python
Executable File

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