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.
- In cPanel open Setup Python App and click Create Application.
- Choose the Python version, the application root (for example
pyapp), the domain and the startup file. cPanel creates apassenger_wsgi.pyfile for you. - Copy the command at the top of the page, paste it into SSH to enter the virtualenv, then run
pip install -r requirements.txt. - Edit
passenger_wsgi.pyso it imports your app. For Django:from myproject.wsgi import application. For Flask:from app import app as application. - 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.