Can’t connect to Render’s internal PSQL DB despite using their internal string command and code which works in my dev environment with accessible string.
i.e.
# page implements the main database models.
from flask import Flask as fl
import src.scripts.index as scripts
import sqlalchemy as sa
from sqlalchemy.orm import scoped_session, sessionmaker, configure_mappers
from sqlalchemy.ext.declarative import declarative_base
# connect
engine = sa.create_engine("postgres+psycopg2://user:host@password/my_db", convert_unicode=True, echo=True)
session = scoped_session(sessionmaker(autocommit=False,
autoflush=False,
bind=engine))