Where to keep the python version in render.yaml file

Tried deploying django app from github. By default python version 3.7.10 is used. But need to upgrade the python. According to the doc PYTHON_VERSION should be specified. But how and where to specify is not in detail? Where to keep the PYTHON_VERSION for the successful deploy?

Hi Gokula,

Thanks for reaching out.

The PYTHON_VERSION environment variable would be added on the Environment tab of an existing service.

In a Blueprint (render.yaml) you’d add it to the envVars of the service, e.g.:

... envVars: - key: PYTHON_VERSION value: 3.10...

Hope that helps

Alan

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.