Skip to main content

For SaaS

Django Hosting for SaaS

Most Django SaaS founders end up with a familiar bill: app on Heroku at $50, PostgreSQL at $50, Redis at $30, plus the surprise transfer fees. Hostim runs the same Django stack — Gunicorn, PostgreSQL, Redis, Celery worker — for a small fraction of that, on EU bare metal, with flat monthly pricing.

# docker-compose.yml
services:
  web:
    image: my-django-app
    environment:
      - DJANGO_SETTINGS_MODULE=config.settings.prod
  db:
    image: postgres:16
    volumes:
      - db_data:/var/lib/postgresql/data
  • 🇪🇺 Hosted in Germany, GDPR by default
  • 🐳 Run Docker apps (Compose supported)
  • 🗄️ Built-in MySQL, Postgres, Redis & volumes
  • 🔐 HTTPS, metrics, and isolation per project
  • 💳 Per-project cost tracking · from €2.5/month

Why Django on Hostim for SaaS

A Django SaaS reaches a predictable shape early: an admin, an API, a background worker, a database, and uploads. Hostim maps to this shape one to one. The app container starts at €2.5/month. Managed PostgreSQL is on the free tier until you outgrow it. Persistent volumes hold media uploads and survive deploys. A second app in the same project runs Celery against the shared Redis. There is no per-seat billing, no per-request fee, and no traffic surcharge — what you reserve is what you pay.

What SaaS need from a host

SaaS founders running a single product with paying customers, usually a few apps and a database, growing from one server to a few.

  • A managed database with backups (no manual postgres tuning at 2am)
  • HTTPS and custom domains without nginx config
  • Predictable monthly cost — not a usage-based bill that grows with traffic
  • Persistent volumes for user uploads and exports
  • Background workers as a separate process

Hostim is built for this profile. One project per environment, managed PostgreSQL or MySQL, persistent volumes, custom domains, and a separate worker app for queues — all under flat monthly pricing. No bill surprises.

How Hostim runs Django

Modern Django deployment is container-based. The app runs under Gunicorn or Uvicorn, with PostgreSQL on a separate service and persistent storage for media uploads. Hostim mirrors this layout one to one.

Deploy model

You bring a Dockerfile or a Git repo. We build, run migrations on deploy, and attach managed PostgreSQL plus a volume for /media. ASGI works the same as WSGI — Channels and async views run without extra config.

Common pitfalls

Two common failure points: media files lost on container restart, and DATABASE_URL hardcoded for local dev. Hostim provides persistent volumes for /media and injects DATABASE_URL at runtime.

Typical env vars

DJANGO_SETTINGS_MODULE, SECRET_KEY, DEBUG, ALLOWED_HOSTS, DATABASE_URL

FAQ

How does the cost compare to Heroku for a typical Django SaaS?

A standard Heroku setup (Standard 1x dyno + Standard PostgreSQL + Heroku Data Redis) is around $80-120/month. Equivalent on Hostim is typically €15-30/month for the same workload.

How does Celery run?

As a separate app in the same project, using the same Docker image and a celery -A app worker command. It shares DATABASE_URL and REDIS_URL automatically.

What about Stripe-style usage events?

Stripe webhooks hit your Django app like any other request. We do not bill per webhook — flat monthly pricing for the container.

Is there a free tier I can build on?

Yes. PostgreSQL, MySQL, Redis and persistent volumes have a free tier. App containers start at €2.5/month. A trial project lets you exercise the full stack before paying.

Ready to deploy Django?

Spin up an app in minutes. Managed database on the free tier, custom domain included.