Report this

What is the reason for this report?

Build fails on deploying django on Apps

Posted on October 7, 2023

Getting this error on deploying django app on Apps

Requested runtime 'python-3.9.18' is not available for this stack (heroku-22).

I’ve added the runtime.txt file as well having same version.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya @hamzaasif,

It’s possible you’ve not added the python version properly. In runtime.txt & specify your version of Python like so:

python-3.10.4

Here are some examples of how it should be specified:

python-3.9.18 is CORRECT.

Python-3.9.18 is INCORRECT.

Python 3.9.18 is INCORRECT.

https://docs.digitalocean.com/products/app-platform/reference/buildpacks/python/

If the error is still present, try using another Python version.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.