19 lines
414 B
Python
19 lines
414 B
Python
from app import create_app, db
|
|
from flask_migrate import Migrate
|
|
|
|
from app.models import Profile, Reading, User
|
|
|
|
app = create_app()
|
|
|
|
# Initialize Flask-Migrate
|
|
migrate = Migrate(app, db)
|
|
|
|
# Add shell context for Flask CLI
|
|
@app.shell_context_processor
|
|
def make_shell_context():
|
|
return {'db': db, 'User': User, 'Profile': Profile, 'Reading': Reading}
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run()
|