Skip to content

Instantly share code, notes, and snippets.

@Evelca1N
Created June 23, 2015 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Evelca1N/6446a724c92b358643f2 to your computer and use it in GitHub Desktop.
Save Evelca1N/6446a724c92b358643f2 to your computer and use it in GitHub Desktop.
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