def setUp(self): db.create_all()
def initdb(): """ create all database tables """ with app.test_request_context(): db.create_all()
from noter import app, db import noter.controllers import noter.models if __name__ == '__main__': db.create_all() app.run(host='0.0.0.0')