def build_or_refresh_db(): logger.off() db.drop_all() db.create_all() insert_data() logger.on() print "DB Ready!"
def build_or_refresh_db(): db.drop_all() db.create_all() insert_data() print "DB Ready!"
def createdb(): from accounting import db db.create_all()
def build_or_refresh_db(): #Populates or refreshed database db.drop_all() db.create_all() insert_data() print "DB Ready!"