Could you tell me how to publish Python's Web website locally?

if I develop a website using python framework, but I don"t want to publish it on the web, I just want to use it on my local computer or give it to other friends, how should I pack it?

if you give it to a friend, how can a friend use it directly without installing any python-related files? Hope to help solve it, thank you!

Nov.05,2021

  1. set inbound rule or host to localhost instead of 0.0.0.0
  2. dependent objects always need to be installed, so it is recommended to install a virtual env, or you pack a docker image.
Menu