Deplomo
Sign in
Python and Django deployment guide

Deploy Django and Python projects on Deplomo

Deploy Django, FastAPI, and Flask on Deplomo from Git or the CLI. Set build and run commands, configure environment variables, a database, and a domain, then deploy your Python project.

Short answer

To deploy Django or run Python web services without configuring a Linux server, connect your Git repository to the cloud platform or run deplomo deploy The Deplomo platform installs packages and runs your app in a secure container with a custom domain and free SSL. For specialized hosting, see the Python hosting or visit the full Deployment guide guide.

Last reviewed:6 September 2026

Prerequisites and instructions for running Python projects

Add your project dependencies to requirements.txt or pyproject.toml . The app web server must listen on PORT at 0.0.0.0 :

# Deploy FastAPI with Uvicorn
uvicorn main:app --host 0.0.0.0 --port $PORT

# Deploy Django with Gunicorn
gunicorn config.wsgi:application --bind 0.0.0.0:$PORT

# Deploy Flask
gunicorn app:app --bind 0.0.0.0:$PORT

On Windows (PowerShell), use irm https://get.deplomo.com/install.ps1 | iex instead of the first command.

Method 1: Deploy a Django project directly from Git

  1. Create a project and cloud environment in the Deplomo dashboard.
  2. Create a new service and select your GitHub or GitLab repository.
  3. Enter the build command, for example to run migrations and collect static files: python manage.py collectstatic --noinput.
  4. Enter the web server run command and set secret environment variables such as SECRET_KEY .
  5. After deploying your Django project, connect a custom domain and use free SSL.

Method 2: Deploy a Python project with the Deplomo CLI

If your project is not in Git or you want to manage deployments in a CI/CD pipeline, use the CLI:

curl -fsSL https://get.deplomo.com/install.sh | sh
deplomo login
cd my-python-project
deplomo deploy

Database, media files, and production environment tips

  • Use the Deplomo add-ons section for PostgreSQL, MySQL, or Redis.
  • Store user-uploaded media files on persistent cloud disks or S3-compatible storage.
  • When deploying Flask or FastAPI, store secret keys in environment variables.

Frequently asked questions

How do I deploy Django on Deplomo?

To deploy Django, connect your project to Git. Deplomo detects requirements.txt, installs the packages, and runs your app in an isolated cloud environment with a WSGI server such as Gunicorn.

Do FastAPI and Flask deployments require a Dockerfile?

No. Deplomo detects Python frameworks automatically, so you do not need a custom Dockerfile to deploy FastAPI or Flask. Custom Dockerfiles are also supported.

How do I deploy a Django project with a database?

To deploy a Django project, create a PostgreSQL or MySQL database from the Deplomo add-ons section, then set the DATABASE_URL environment variable for your service.

How do I deploy a Python project from the CLI?

Run deplomo deploy from your project directory to send and deploy its files directly to the cloud platform without connecting a Git repository.