setup_python_app
Provision and configure a complete Python web app (Flask, Django, FastAPI, or WSGI) with Passenger and .htaccess routing on cPanel.
Instructions
Provision and configure a complete Python application (Flask, Django, FastAPI, or WSGI) with Passenger and .htaccess routing
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain or subdomain to host this Python app on (e.g. 'python.example.com') | |
| app_name | Yes | Application identifier (e.g. 'flask-api', 'django-site') | |
| app_root | Yes | Application root directory (e.g. 'python/my-app' or 'public_html/py') | |
| env_mode | No | Deployment mode | production |
| framework | No | Python web framework template to initialize | flask |
| python_version | No | Python version (e.g. '3.9', '3.10', '3.11', '3.12') | 3.11 |