Launch an app

Deploy a Python app (Django, Flask, FastAPI)

requirements.txt, the app's virtualenv, gunicorn or uvicorn, Deploy.

  1. Where the code goes
  2. Choose the framework
  3. Django settings
  4. Deploy
  5. In the terminal

Where the code goes

~/web/yourdomain.com/app, with a requirements.txt. Each app has its own virtualenv at app/.venv for the Python version you chose.

Choose the framework

App settings → Django, Flask, FastAPI/Starlette, any WSGI or ASGI app, or a script. Check the start command names your module: Django myproject.wsgi:application, Flask app:app, FastAPI main:app.

Django settings

  • ALLOWED_HOSTS must include your domain
  • STATIC_ROOT must be set — Deploy runs collectstatic and migrate
  • Keep SECRET_KEY and the database URL in Environment variables

Deploy

Press Deploy — pip install -r requirements.txt, then the build step, then a restart.

In the terminal

cd ~/web/yourdomain.com/app
source .venv/bin/activate
pip install -r requirements.txt
python manage.py createsuperuser
deactivate
mkdir -p tmp && touch tmp/restart.txt   # restart the app

Stuck? Our engineers answer support tickets around the clock. Contact us, or create an account and open a ticket from the dashboard — the same guides are there too.

Next step

Move your site, or your whole cloud estate

Shared hosting you can buy in two minutes. Infrastructure and managed services quoted by an engineer within one business day.