import os from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker engine=create_engine(os.getenv(\"DATABASE_URL\")) db = scoped_se
instead of
engine=create_engine(os.getenv("DATABASE_URL")) db = scoped_session(sessionmaker(bind=engine))
type this with your url:
engine = create_engine("postgresql://scott:tiger@localhost/mydatabase") db = scoped_session(sessionmaker(bind=engine))