The-Toon
The-Toon

Reputation: 111

Heroku: ModuleNotFoundError: No module named 'bar'

It pushes successfully, but it doesn't run once I go to the website. My full error is here.

My Procfile is

web: gunicorn foo.foo.wsgi:app

My requirements.txt is

psycopg2==2.7.6.1
djangorestframework==3.9.2
Pillow==6.0.0
requests==2.21.0
factory_boy==2.11.1
django-filter==2.1.0
django-rest-auth==0.9.5
django-heroku
gunicorn

Upvotes: 0

Views: 508

Answers (3)

Sudarshan.G
Sudarshan.G

Reputation: 51

can you please install

pip install gunicorn==19.9.0

Upvotes: 1

Sudarshan.G
Sudarshan.G

Reputation: 51

OR

Open the Procfile and add the below line

web: gunicorn projectname.wsgi --log-file -

thank you

Upvotes: 0

Sudarshan.G
Sudarshan.G

Reputation: 51

update your settings.py

ALLOWED_HOSTS = ['*']

thank you

Upvotes: 0

Related Questions