Hi,
I created a db successfully, connected it to my flask app using the internal URL, but I can’t figure out how to create the tables using SQLAlchemy.create_all(). Any help is appreciated!
Hi @abdul,
This type of command is usually run as a part of a database migration, which you would then include as a part of your build script.
See https://render.com/docs/deploy-django#create-a-build-script for an example of this in our Django example. You could take a similar approach for your flask app.
Regards,
Matt
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.