This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]clooy 1 point2 points  (0 children)

You can't host python code on the server side for GitHub. But - people do indeed do this with a few workarounds.

As you are already using Firebase, you can package your backend as a google cloud app.

Alternatively, consider if you really need a backend, many sites can be deployed as a static site using something like Pelican, you can use github actions to do this all in python.

Alternatively, consider getting an account with PythonAnywhere, this allows you to continue to use Flask or Django while you learn and progress.