将文件推送到heroku时出错(错误:无法将某些引用推送到...)

时间:2019-08-08 16:41:03

标签: python django git heroku pycharm

当我尝试在控制台中键入“ git push heroku master”时,出现以下问题。这是我对heroku的第二种方法,同样我在同一个地方遇到问题,我一直在互联网上寻求建议,但没有任何帮助

(venv) C:\Users\patryk\Desktop\Django\MyPage>git push heroku master
Enumerating objects: 33, done.
Counting objects: 100% (33/33), done.
Delta compression using up to 4 threads
Compressing objects: 100% (27/27), done.
Writing objects: 100% (33/33), 17.14 KiB | 1.90 MiB/s, done.
Total 33 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote:  !     Python has released a security update! Please consider 
upgrading to python-3.7.3
remote:        Learn More: https://devcenter.heroku.com/articles/python- 
runtimes
remote: -----> Installing python-3.7.4
remote: -----> Installing pip
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to xxx.
remote:
To https://git.heroku.com/xxx.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/xxx.git'

requirements.txt文件:

-r requirements-dev.txt
gunicorn
psycopg2

requirements-dev.txt文件:

dj-database-url==0.5.0
dj-static==0.0.6
Django==2.2.4
django-bootstrap-form==3.4
djangorestframework==3.10.2
Pillow==6.1.0
python-decouple==3.1
pytz==2019.2
sqlparse==0.3.0
static3==0.7.0

0 个答案:

没有答案