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
Show all 83 tags Show fewer tags
cloudflare
cms
configuration
cost-management
crm
database
data-management
data-transfer
debugging
deployment
devops
diy
django
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
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 a System Prompt That Actually Controls AI Behaviour
Learn the structure and principles behind effective system prompts so your AI integration responds consistently and stays within the boundaries you define.
AI and Workflows
ai
llm
prompting
By
Tai
·
Mentor
80 views
· 20 min read
How to Use Python contextlib.suppress to Replace Repetitive try/except/pass Blocks
Replace verbose try/except/pass patterns with contextlib.suppress to make intentional exception suppression readable and precise.
Development
best-practices
error-handling
python
By
Tai
·
Mentor
107 views
· 15 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
102 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
102 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
95 views
· 25 min read
Structuring Django Settings for Local, Staging, and Production Without Duplication
Split settings into a base file and environment-specific files so configuration is clean, environment variables are explicit, and nothing leaks between environments.
Development
configuration
devops
django
By
Tai
·
Mentor
99 views
· 20 min read
How to Find and Fix N+1 Query Problems in Django Using Debug Toolbar
Install Django Debug Toolbar and use the SQL panel to identify duplicated queries and fix them with select_related and prefetch_related.
Development
database
django
performance
By
Tai
·
Mentor
97 views
· 28 min read
Git Rebase vs Merge — Choosing the Right Strategy for Your Team
Understand when to rebase and when to merge, with concrete examples of each workflow and the team rules that prevent history from breaking.
Development
git
version-control
workflow
By
Tai
·
Mentor
71 views
· 20 min read
Writing Testable Django Views by Separating Logic From HTTP Handling
Structure Django views so business logic lives in service functions that can be unit-tested without a running server or HTTP request.
Development
backend
django
testing
By
Tai
·
Mentor
74 views
· 25 min read
Setting Up Pre-commit Hooks to Enforce Code Quality Before Every Push
Configure pre-commit with Black, isort, and flake8 so formatting and lint violations are caught automatically before code leaves your machine.
Development
git
python
tooling
By
Tai
·
Mentor
72 views
· 18 min read
How to Debug a Python KeyError Without Stack Trace Guessing
Learn a systematic method for pinpointing KeyErrors in nested dictionaries using logging, defensive access, and breakpoints.
Development
backend
debugging
python
By
Tai
·
Mentor
71 views
· 22 min read