[Solved]-Django Heroku – ModuleNotFoundError: No module named 'django_heroku'


There was a problem with:

pip install django-heroku

It was not fully installed because thee was a problem with psycopg2 that was not installed.
To install psycopg2, run:

pip install psycopg2

Then you can run pip install django-heroku and the error disappeared.

You can also try installing:

pip install psycopg2-binary

if the error persists


I had the same problem as well. I have psycopg2 installed. (for postgres)

Installing ‘psycopg2- binary’ solved my problem.



For me, the error was due to adding django-heroku to installed apps in settings.py..,removing it solved the issue.

Leave a comment