sentiment-analysis-api icon indicating copy to clipboard operation
sentiment-analysis-api copied to clipboard

Update postgres DATABASE_URL as per psycopg2 requirements.

Open g-paras opened this issue 4 years ago • 0 comments

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.

g-paras avatar Aug 29 '21 14:08 g-paras