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

All Tutorials

79 tutorials
DevOps Advanced
Zero-Downtime Deploys for Django on a Single VPS: Gunicorn Graceful Reloads, Release Directories and Health Checks

Stop dropping requests on deploy: systemd socket activation, gunicorn HUP reloads, atomic release symlinks, expand/contract migrations and a /healthz-gated deploy script that rolls itself back, all on one Ubuntu 24.04 VPS.

25 min · 107
Read
DevOps Advanced
systemd for Django in Depth: Hardened Services, Timers Instead of Cron, Resource Limits and Restart Policies

Complete, sandboxed systemd units for gunicorn and Django management commands: hardening measured with systemd-analyze, memory and CPU limits that contain OOM kills, sane restart policies, timers that replace cron, and failure alerts.

21 min · 92
Read
DevOps Advanced
Redis in Production for Django: Persistence, Memory Limits and Eviction, Security and Sentinel

Split Redis by job so the cache can evict freely while Celery tasks and sessions never vanish: AOF vs RDB, maxmemory policies, ACLs and network lockdown, kernel tuning, monitoring, backups and Sentinel failover.

23 min · 131
Read
DevOps Advanced
PostgreSQL Tuning for Django in Production: Memory Settings, Autovacuum, Bloat and pg_stat_statements

Size PostgreSQL memory, connections and checkpoints for real hardware, keep hot Django tables vacuumed and bloat-free, and use pg_stat_statements, auto_explain and role timeouts to find and contain slow queries.

22 min · 126
Read
DevOps Advanced
PostgreSQL Streaming Replication and Failover for Django: Hot Standby, Promotion and Tested Recovery

Build a PostgreSQL 16 hot standby with replication slots, monitor lag and WAL retention, fail over without split-brain, rebuild the old primary with pg_rewind, and route Django reads safely, with a drill checklist to prove it works.

24 min · 126
Read
DevOps Advanced
Nginx in Depth for Django: Tuning, Rate Limiting, Proxy Caching, Security Headers and Upload Handling

A complete production nginx config for Django behind gunicorn: correct proxy headers, keep-alive upstreams, immutable static caching, safe uploads, login and API rate limits, anonymous page caching and security headers that survive the add_header trap.

24 min · 96
Read
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 · 63
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 · 65
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 · 67
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 · 66
Read
Bootstrap Advanced
Accessibility for Django Applications: WCAG 2.2, Semantic Templates, and Testing with axe

Accessibility is mostly template work you can automate the checking of. Fix forms and errors, build components keyboard users can operate, wire axe into CI, and understand which rules a machine can never verify.

19 min · 146
Read
Security Advanced
Content Security Policy for Django: Nonces, Trusted Types, and Killing XSS for Good

CSP turns cross-site scripting from a breach into a blocked console message. Ship a strict nonce-based policy, migrate without breaking the site, read the violation reports, and avoid the settings that make it decorative.

19 min · 144
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.