Forums

How to deploy flask with database

I've recently started using pythonanywhare and I wanted to deploy a web app, problem is that my code generates a database file (.db). To be more specific, right now I'm using anfederico's Flaskex from Github as a template (that is where the database generation comes from). Is there a way to fix that?

We have a blog post about how to set up a Flask app with a database that you can use: https://blog.pythonanywhere.com/121/