I'm currently writing an program using Flask python. But I can not connect my database with my program. I'm use Postgresql for database.
import os
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
engine = create_engine(os.getenv("DATABASE_URI"))
db = scoped_session(sessionmaker(bind=engine))
This is the code what I'm using for it, But it didn't work. So please help me to connect my database
This is the error message that what I have got, Error message