Get project working locally

This commit is contained in:
Peter Stockings
2024-12-24 00:57:08 +11:00
parent d4fc1868ab
commit 11239fd4f5
22 changed files with 1214 additions and 14 deletions

18
manage.py Normal file
View File

@@ -0,0 +1,18 @@
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()