Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Django:git推送heroku主机失败_Python_Django_Heroku - Fatal编程技术网

Python Django:git推送heroku主机失败

Python Django:git推送heroku主机失败,python,django,heroku,Python,Django,Heroku,我第一次尝试将django web应用程序推送到heroku,出现如下错误消息 Delta compression using up to 4 threads. Compressing objects: 100% (68/68), done. Writing objects: 100% (81/81), 105.31 KiB | 0 bytes/s, done. Total 81 (delta 7), reused 0 (delta 0) remote: Compressing source f

我第一次尝试将django web应用程序推送到heroku,出现如下错误消息

Delta compression using up to 4 threads.
Compressing objects: 100% (68/68), done.
Writing objects: 100% (81/81), 105.31 KiB | 0 bytes/s, done.
Total 81 (delta 7), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing Python-3.5.0
remote:  !     Requested runtime (Python-3.5.0) is not available for this     stack
(cedar-14).
remote:  !     Aborting.  More info:     https://devcenter.heroku.com/articles/pytho
n-support
remote:
remote:  !     Push rejected, failed to compile Python app
remote:
remote: Verifying deploy...
remote:
remote: !       Push rejected to polar-lake-12528.
remote:
To https://git.heroku.com/polar-lake-12528.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/polar-lake-12528.git'
My runtime.txt看起来像:

python-3.5.1

我已经更改为小写,并将python版本更新为3.5.1,但仍然不起作用。

不支持python 3.5.0。您可以将其更改为
python-3.5.1


有关支持的运行时,请参阅。

我已经更新了python版本,但heroku仍然检测到python 3.5.0。将runtime.txt更改为python-3.5.1后,它将不起作用。