Tutorials
In-depth guides written by Mentai mentors.
Browse by category
Filter by topic
All
backup
celery
cloudflare
database
deployment
devops
django
docker
linux
logging
monitoring
nginx
Show all 18 tags Show fewer tags
Building a Reliable Automated PostgreSQL Backup System
Automate daily pg_dump exports, compress and timestamp them, upload to cloud storage, and verify restoration so you have tested backups without relying on your hosting provider.
Cloud and Infrastructure
backup
devops
postgresql
By
Tai
·
Mentor
128 views
· 32 min read
How to Set Up Structured Logging in Django for Production Debugging
Configure Django's LOGGING dict to write structured output, route errors to a searchable destination, and attach request IDs so production issues are traceable.
Cloud and Infrastructure
devops
django
logging
By
Tai
·
Mentor
126 views
· 25 min read
Configuring Redis as a Django Cache Backend and Session Store
Set up django-redis to handle both page fragment caching and session storage so load times drop and sessions survive server restarts.
Cloud and Infrastructure
django
performance
redis
By
Tai
·
Mentor
117 views
· 22 min read
How to Deploy Django Schema Migrations Without Taking the Site Offline
Use a three-phase migration strategy so database schema changes and code updates can be applied in production without a maintenance window.
Cloud and Infrastructure
database
deployment
django
By
Tai
·
Mentor
120 views
· 35 min read
How to Prevent PostgreSQL Connection Exhaustion With PgBouncer
Configure PgBouncer in transaction mode in front of your PostgreSQL database so connection limits are not hit when Django scales beyond a handful of workers.
Cloud and Infrastructure
devops
performance
postgresql
By
Tai
·
Mentor
116 views
· 32 min read
How to Set Up Cloudflare R2 as a Django Media Storage Backend
Replace local media file storage with Cloudflare R2 using boto3 so uploaded files persist across deployments and are served from a CDN edge.
Cloud and Infrastructure
cloudflare
django
storage
By
Tai
·
Mentor
112 views
· 28 min read
Deploying a Django Application to Render Without Environment Variable Chaos
Structure Django settings and Render service configuration so secrets, database URLs, and environment-specific values are managed cleanly from day one.
Cloud and Infrastructure
deployment
django
render
By
Tai
·
Mentor
98 views
· 30 min read
How to Monitor Celery Workers and Detect Task Failures Before Users Do
Configure Celery Beat health checks, Flower monitoring, and failure alerting so you know when a background worker has stopped processing before it causes a user-facing problem.
Cloud and Infrastructure
celery
devops
monitoring
By
Tai
·
Mentor
93 views
· 30 min read
Setting Up Automatic SSL With Let's Encrypt and Nginx on a Linux VPS
Use Certbot and Nginx to provision and auto-renew free TLS certificates so your site is HTTPS-only with no manual certificate management.
Cloud and Infrastructure
linux
nginx
ssl
By
Tai
·
Mentor
87 views
· 28 min read
How to Run Django in Docker Without the Common Pitfalls
Set up a production-ready Docker Compose environment for Django, PostgreSQL, Redis, and Celery while avoiding the rebuild, port, and database readiness mistakes that waste hours of debugging.
Cloud and Infrastructure
devops
django
docker
By
Tai
·
Mentor
89 views
· 35 min read