2👍
✅
The first thing you’ll need to do is deploy a web server (apache is a common choice).
Once your server is running, you can test it by pushing simple HTML files to it and make sure they are accessible to you from a browser.
Once your server is properly configured, you have a number of options available for interfacing your web-server with Python:
- The easiest is probably to follow the deployment guide of a popular web framework, as you mentioned.
- You can use mod_python directly, which requires adding boilerplate code around your code to work inside a mod_python instance.
- You can use CGI, which does not scale very well but makes it fairly easy to interact with the web-server:
Source:stackexchange.com