Good afternoon.
I have a small application written in flask and I'm having problems with the database when trying to deploy in heroku and after searching for two days I did not find any solution that would meet me.
In summary, this is the code for my app:
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'postgresql://postgres:1234@localhost/jperfil'
db = SQLAlchemy(app)
app.secret_key = '123456789'
#aqui vão os registros de algumas blueprints e imports de classes
db.create_all()
I can imagine that this is not how you set up a bank to deploy, even though these are the local bank settings, but how to configure so that heroku understands the settings and automatically creates my bank?