CF Pages Python project, Flask anyone?

Heya!

I am puzzled with this one: https://developers.cloudflare.com/pages/platform/build-configuration

It says Python but no references anywhere with HOW? How to deploy? What does runtime.txt , Pipfile contain?
Can anyone spin up Flask example? Btw, on Heroku and Azure, this is a breeze, takes literally one minute.

Cheers

1 Like

CF Pages is for deploying a static site.

You can run your own python code (python is preinstalled on builder), but it has to generate your entire site as static files that can be uploaded and hosted. CF Pages will not run python code to generate responses to incoming requests.

Set up guide https://developers.cloudflare.com/pages/how-to/deploy-anything

Select repo, select branch, provide command to run to generate your website, provide directory your generated content ends up in so it can be uploaded.

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