How to host a Python application?

If Python is included in your hosting package, you will see the Python logo in the domain overview of your Plesk panel. The Python integration is carried out via a passenger server with a WSGI interface. Your applications must be specially written for WSGI (How to).

Available options in your Plesk panel:

Switch on: Activates the Python support for the corresponding domain
Disable: Deactivates the Python support for the corresponding domain
Rewrite Config: Changes to the settings are applied (slowly)
Application Reload: Application server is restarted (fast)

Note: Changed settings are applied only after switching on again. Clicking on Application Reload creates the file restart.txt in the App Root's /tmp directory. The Passenger Server will then reload the application.

Settings:

App Root: The root directory of the application is specified here; it is relative to the web space and should not be in the Document Root for security reasons.
Startup File: Your application starts running with this file
Python Version: The currently available Python versions are displayed here
Mode: Productive = no error messages are shown, development = error messages are shown

  • 0 Users Found This Useful
Was this answer helpful?