[英]Heroku: ModuleNotFoundError: No module named 'bar'
It pushes successfully, but it doesn't run once I go to the website.它推送成功,但是一旦我将 go 推送到网站,它就不会运行。 My full error is here .我的完整错误在这里。
My Procfile is我的档案是
web: gunicorn foo.foo.wsgi:app
My requirements.txt is我的 requirements.txt 是
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
can you please install你能安装吗
pip install gunicorn==19.9.0 pip 安装 gunicorn==19.9.0
update your settings.py更新你的 settings.py
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
thank you谢谢你
OR或者
Open the Procfile and add the below line打开 Procfile 并添加以下行
web: gunicorn projectname.wsgi --log-file - web:gunicorn projectname.wsgi --log-file -
thank you谢谢你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.