Skip to content

Commit

Permalink
Merge pull request #2410 from mreid-tt/patch-1
Browse files Browse the repository at this point in the history
geo_alchemy: make application context available to db function
  • Loading branch information
samuelhwilliams authored Jul 23, 2024
2 parents 68bc6de + 6d749ef commit d929d53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/geo_alchemy/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def index():

if __name__ == '__main__':

db.create_all()
with app.app_context():
db.create_all()

# Start app
app.run(debug=True)

0 comments on commit d929d53

Please sign in to comment.