def run(self): from solace import database if self.drop_first: database.drop_tables() print 'dropped existing tables' database.init() print 'created database tables'
def run(self): from solace import database, models database.drop_tables() print 'dropped existing tables' database.init() print 'created database tables' admin = models.User(self.username, self.email, self.password, is_admin=True) database.session.commit() print 'Created %s:%s (%s)' % (self.username, self.password, self.email)