We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80529a3 commit c7ea806Copy full SHA for c7ea806
labconnect/__init__.py
@@ -55,11 +55,13 @@ def initialize_extensions(app) -> None:
55
# Since the application instance is now created, pass it to each Flask
56
# extension instance to bind it to the Flask application instance (app)
57
db.init_app(app)
58
- db.create_all()
59
migrate.init_app(app, db)
60
jwt.init_app(app)
61
app.json = OrJSONProvider(app)
62
+ with app.app_context():
63
+ db.create_all()
64
+
65
@app.after_request
66
def refresh_expiring_jwts(response):
67
try:
0 commit comments