0
Personal, all right.
Someone can help me solve the following problem:
I’m making an application in Django and now I’m in the process of uploading to the server. I’ll send it to Heroku.
I performed the following commands:
Creating git repository:
$ git init
Add and "commit" to the initiated repository:
$ git add .
$ git commit -m "first commit"
Shortly after:
$ heroku create
$ git push -m master
And the following mistake happens:
Counting objects: 97, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (85/85), done.
Writing objects: 100% (97/97), 324.35 KiB | 0 bytes/s, done.
Total 97 (delta 15), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Requested runtime (python-3.5.2) is not available for this stack (heroku-18).
remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to polar-reaches-18114.
remote:
To https://git.heroku.com/polar-reaches-18114.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/polar-reaches-18114.git'
So, I’m deploying following a video lesson and at the time the teacher was using python 3.4.0, but currently I’m using python 3.5.2, seeing this, includes in the file Runtime.txt: Pyhton-3.5.2. However as I understood from the message the python version is not being recognized, I also tried to carry out the same process by changing the description of the file Runtime.txt to python-3.4.0, but the same problem occurs.
Thanks! I’m just finding installation tutorials for the Python 3.7.0 version. Can you let me know how I can install version 3.7.1?
– user128174
I checked that there are tutorials for python version 3.6.6 that according to documentation of Heroku is the default version: "By default, Newly created Python apps use the python-3.6.6 Runtime.". I will try to install python version 3.6.6
– user128174