django_heroku ModuleNotFoundError虽然正确安装

时间:2019-07-31 04:12:15

标签: python django heroku

我正在制作一个django项目并使用css文件,但是在部署到heroku时我得到了:

ModuleNotFoundError: No module named 'django_heroku'

我已经为django-heroku安装了所有东西...最后说:

Or, you can disable collectstatic for this application:
remote:
remote:           $ heroku config:set DISABLE_COLLECTSTATIC=1

但是我正在使用css文件并通过禁用此applicaton错误发生 请帮助,,,我几乎放弃了我尝试了2天的机会

这里是我执行git push heroku master时发生错误的程序

remote:            import django_heroku
remote:        ModuleNotFoundError: No module named 'django_heroku'
remote:
remote:  !     Error while running '$ python manage.py collectstatic --noinput'.
remote:        See traceback above for details.
remote:
remote:        You may need to update application code to resolve this error.
remote:        Or, you can disable collectstatic for this application:
remote:
remote:           $ heroku config:set DISABLE_COLLECTSTATIC=1
remote:
remote:        https://devcenter.heroku.com/articles/django-assets
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to fjblogs.
remote:
remote:
remote:    To https://git.heroku.com/fjblogs.git
remote:     ! [remote rejected] master -> master (pre-receive hook declined)
remote:    error: failed to push some refs to 'https://git.heroku.com/fjblogs.git'

0 个答案:

没有答案