Tutorials

Learn web development with step-by-step guides

From beginner to advanced — Django, Python, REST APIs, JavaScript, Bootstrap, and more

All Django Python REST API JavaScript Bootstrap Database DevOps Security AI & LLMs
Level: All Levels Beginner Intermediate Advanced

DevOps Tutorials

32 tutorials
DevOps Advanced
Linux Performance Troubleshooting for Django Servers: The USE Method, vmstat, iostat, ss and strace

A calm, repeatable checklist for when the Django site is slow: read vmstat, iostat, ss and PSI with the USE method, trace stuck gunicorn workers with strace and py-spy, and prove whether the bottleneck is the app or PostgreSQL.

32 min · 198
Read
DevOps Advanced
Container Hardening for Django: Non-Root Images, Read-Only Filesystems, Dropped Capabilities and Image Scanning

Turn an RCE in your Django app into a contained, unprivileged, read-only process: a digest-pinned multi-stage Dockerfile, a hardened Compose stack with dropped capabilities and an isolated database, file-based secrets, and Trivy scanning with SBOMs in CI.

23 min · 162
Read
DevOps Advanced
Centralised Logging for Django Servers: journald, logrotate, JSON Logs, Loki and Grafana

Stop logs filling your disk: cap journald and logrotate, emit JSON from Django with a request ID shared with nginx, ship everything to Loki with Alloy, and query, retain and alert on it without leaking personal data.

30 min · 209
Read
DevOps Advanced
Alerting That People Don't Ignore: Uptime Checks, Prometheus Alertmanager, SLOs and Error Budgets for Django

Replace noisy CPU alerts with symptom-based paging for Django: blackbox uptime and TLS checks, django-prometheus metrics, a 99.5% SLO with multi-window burn-rate rules, and a complete Alertmanager config with grouping, inhibition and a watchdog.

26 min · 183
Read
DevOps Advanced
HTTP Caching and CDNs for Django: ETags, Cache-Control, Surrogate Keys, and Purging

The fastest request is the one your server never sees. Get Cache-Control right, use ETags without lying, cache pages for logged-in users safely, and purge by tag instead of by URL.

21 min · 273
Read
DevOps Advanced
Infrastructure as Code for Django: Terraform, Ansible, and Reproducible Servers

Stop configuring servers by hand. Provision with Terraform, configure with Ansible, keep secrets out of state, and rebuild any environment from an empty account in under an hour.

18 min · 204
Read
DevOps Advanced
Self-Hosted Object Storage for Django with MinIO: Buckets, Policies, Durability, and Honest Trade-offs

Run your own S3-compatible storage without fooling yourself about durability: bucket policies and least privilege, presigned URLs, direct browser uploads, why a single node is not a backup, mirroring, lifecycle rules, and when a managed provider wins.

17 min · 391
Read
DevOps Advanced
Hosting Multiple Django Apps on One Server: Traefik Routing, Isolation, and Blast Radius

Run several Django applications on a single machine without them taking each other down: label-driven routing, automatic certificates, network and resource isolation, independent deploys, per-app backups, and knowing when one server is no longer enough.

16 min · 338
Read
DevOps Advanced
Email Deliverability for Django: SPF, DKIM, DMARC Alignment, Bounces, and Mail That Actually Arrives

Sending mail is easy; arriving is not. Authentication records explained properly, the alignment rule most guides omit, why fresh servers cannot send, asynchronous delivery, bounce handling, and the headers that keep you out of the spam folder.

15 min · 374
Read
DevOps Advanced
DNS for Django Deployments: Records, TTL, Cutovers, CAA, and DNSSEC Without the Outage

DNS treated as the distributed system it is: which records matter, what TTL really controls, why propagation is the wrong word, negative caching, CAA to restrict certificate issuance, and how to move a domain without a gap in service.

15 min · 314
Read
DevOps Advanced
Backups and Disaster Recovery for Django: Dumps, Restic, Retention, and Restore Drills

Everything a Django deployment needs to survive losing a server: consistent database dumps, media and secrets, encrypted offsite copies with restic, retention that survives ransomware, point-in-time recovery, and the restore drill nobody runs.

15 min · 325
Read
DevOps Advanced
Migrating a Live Django Application to a New VPS Without Losing Data

A complete playbook for moving a running Django site to a new server: inventory, runtime parity, database and media transfer, certificates before DNS, the delta-sync window, the IPv6 trap that breaks TLS issuance, and how to keep a working fallback.

17 min · 319
Read
Missing a topic?

These tutorials are written from real production work, and the best ideas come from readers. Got a suggestion, a correction, or a subject you keep searching for and never find properly explained? Tell us — we read every message, and requested topics move to the front of the queue.

Ready to Build Something?

Check out our premium Django packages and SaaS templates to jumpstart your project.