How do I host a Python application? Print

  • 0

cPanel includes a Setup Python App tool (Application Manager) for Flask, Django and other WSGI apps.

  1. In cPanel, open Setup Python App and click Create Application.
  2. Pick the Python version, set the Application root, Application URL and startup file/entry point.
  3. Click Create. cPanel builds a virtual environment for you.
  4. Use the Run Pip Install option (or activate the shown virtualenv and run pip install -r requirements.txt) to install packages, then restart the app.

The app runs under Passenger, so you don't manage ports manually. For Django, point the WSGI entry to your project's wsgi.py and run migrations. If you need background tasks, custom services or full control, a VPS or Dedicated server is the better fit. Questions? Open a ticket.


Was this answer helpful?

« Back