Created
June 23, 2015 02:48
-
-
Save Evelca1N/6446a724c92b358643f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from app import create_app | |
from flask.ext.script import Manager | |
from app import db | |
from app.models import User | |
... | |
@manager.command | |
def db_up(): | |
""" set up & refresh database """ | |
db.create_all() | |
print 'Database was set up.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment