Tutorials
In-depth guides written by Mentai mentors.
Browse by category
Filter by topic
All
ai
airtable
android
appliances
architecture
asana
automation
backend
backup
best-practices
celery
ci
django
Show all 83 tags Show fewer tags
cloudflare
cms
configuration
cost-management
crm
database
data-management
data-transfer
debugging
deployment
devops
diy
dns
docker
email
error-handling
frontend
git
github-actions
google-sheets
home-setup
htmx
internal-tools
linear
linux
llm
logging
macos
make
mobile
models
moderation
monitoring
nas
networking
nginx
no-code
notion
parental-controls
payments
performance
pgvector
postgresql
postmark
privacy
productivity
prompting
python
raspberry-pi
recovery
redis
render
retool
search
sentry
smart-tv
ssl
storage
stripe
testing
tooling
troubleshooting
typeform
ups
validation
version-control
webflow
wi-fi
workflow
zapier
How to Set Up Sentry Error Tracking in a Django Application
Integrate Sentry into your Django project to capture unhandled exceptions, slow transactions, and regressions with enough context to fix them quickly.
SaaS and Tools
django
monitoring
sentry
By
Tai
·
Mentor
105 views
· 22 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
127 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
118 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 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
113 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 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
How to Run AI API Calls Asynchronously With Celery in Django
Offload slow OpenAI or Claude API calls to Celery workers so Django views return immediately and users receive results through HTMX polling.
AI and Workflows
ai
celery
django
By
Tai
·
Mentor
77 views
· 30 min read
Building a RAG Pipeline With pgvector and Django
Set up a retrieval-augmented generation system using PostgreSQL pgvector so your AI assistant answers from your own content instead of hallucinating.
AI and Workflows
ai
django
pgvector
By
Tai
·
Mentor
81 views
· 35 min read
How to Write Idempotent Django Management Commands
Design management commands that can be safely re-run in any environment without creating duplicates, side effects, or partial database state.
Development
data-management
devops
django
By
Tai
·
Mentor
103 views
· 18 min read
How to Enforce Model-Level Validation in Django Using clean()
Implement Django's clean() method to validate business rules at the ORM layer so invalid data is rejected regardless of how the model is saved.
Development
django
models
validation
By
Tai
·
Mentor
103 views
· 22 min read
Building a Reusable HTMX Pagination Component in Django
Create a drop-in server-side pagination partial using HTMX and Django's Paginator so list pages update inline without writing any JavaScript.
Development
django
frontend
htmx
By
Tai
·
Mentor
96 views
· 25 min read