CF Pages Python project, Flask anyone?


I am puzzled with this one: Build configuration · Cloudflare Pages docs

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.


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 Deploying your site · Cloudflare Pages docs

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.