Django - Deployment Error

Hello all,

Currently, I am deploying my Django app, but I am getting an error “django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named ‘psycopg2’”

I installed psycopg2 & psycopg2-binary on windows within the virtualenv, but the error still persists. Disabled Django collectstatic ( env var DISABLE_COLLECTSTATIC) because it was another error with psycopg2.

Do I need to deploy in ubuntu VM?
This is my database engine. My DATABASE_URL = “Heroku_postgres link”. Did I miss anything here?
Please help me out. Please see the attached images.

depl




I resolved it my connecting to JawsDBMySQL in Heroku. My app got deployed.

2 Likes