Skip to content Skip to sidebar Skip to footer

Django / Heroku Deploying - Modulenotfounderror: "no Module Named 'django'"

I get the ModuleNotFoundError: No module named 'django' if I deploy my Django-Project to Heroku. Does anyone know why that is? The complete log file, which comes after opening, is

Solution 1:

In your requirements file change psycopg2-binary to just psycopg2

You are installing django-heroku==0.0.0 is that what you really want?

Solution 2:

I've deployed more than 5 projects to Heroku and I have never faced like this error but it is obvious from the error message that Django is not installed probably, redeploy your project again and see if it works

Solution 3:

I was able to solve the problem now. It was because I hadn't created the static_root and staticfiles_storage folders which are neccesary for production-deploying

Post a Comment for "Django / Heroku Deploying - Modulenotfounderror: "no Module Named 'django'""