[Answered ]-ModuleNotFoundError: No module named 'django_heroku' even after installation

1👍

The answer is that I was in a venv inside a venv. So a virtual environment inside another virtual environment.

(Twatter) (base) name@laptop twatsite %

I deleted my venv folder and exited the venv’s I was in by doing ‘deactivate’ followed by ‘conda deactivate’ (because it told me to). After this I created a new venv folder within Twatter/ with ‘python3 -m venv twatvenv’ and activated it again with ‘source twatvenv/bin/activate’.

After this I reinstalled the requirements with:

pip install -r twatsite/requirements.txt

Now I could run the server from Twatter/twatsite/ with ‘python manage.py runserver’!

Leave a comment