12 lines
231 B
Python
12 lines
231 B
Python
from app import create_app, db
|
|
from app.models import User
|
|
|
|
app = create_app()
|
|
|
|
@app.before_first_request
|
|
def create_tables():
|
|
db.create_all()
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True) # Turn off debug in production
|