sentiment-analysis-api
sentiment-analysis-api copied to clipboard
Update postgres DATABASE_URL as per psycopg2 requirements.
Postgres DATABASE_URL should start with postgresql:// but in Heroku database it starts with postres:// which can cause an Application error.
Fix
Instead to directly passing the environment variable, first load the variable and then replace postgres:// with postgresql:// using str.replace method.