Setting up a Python app (Django, Flask or FastAPI)

Updated 19/11/2026 · 1 min read

Python Business Hosting gives each app its own virtual environment, so packages for one project never clash with another.

  1. In cPanel open Setup Python App and click Create Application.
  2. Choose the Python version, the application root (for example pyapp), the domain and the startup file. cPanel creates a passenger_wsgi.py file for you.
  3. Copy the command at the top of the page, paste it into SSH to enter the virtualenv, then run pip install -r requirements.txt.
  4. Edit passenger_wsgi.py so it imports your app. For Django: from myproject.wsgi import application. For Flask: from app import app as application.
  5. Press Restart on the app page.

For Django, set STATIC_ROOT, run python manage.py collectstatic and python manage.py migrate. FastAPI apps run through an ASGI-to-WSGI adapter such as a2wsgi. Ask us and we will set it up with you.

Was this helpful? Still stuck? Open a ticket
Talk to sales