Cloud Explainers

Every Django Concept a Beginner Needs to Know

Django (Python web framework)11 min video

Every Django concept a beginner needs, each shown doing its job: project and apps, settings, URLs, views, templates, models, migrations, QuerySets, the admin, forms, middleware, and users and sessions. One small renovation job board, built for real on Ubuntu, takes 21 database queries to show one page, and by the end one change brings it to one.

One page, 21 questions

Your Django page works, but the words around it still blur together. View, QuerySet, middleware. Ben's page works too. It's the job board for his small renovation company: twenty open tasks across eight houses.

One page, 21 questions: browser screenshot from the video

To show this one page, Django asked the database twenty-one questions. Twenty of them were wasted. curl shows the page's headers, little notes sent along with it. Ben added one that counts queries, and it says twenty-one. By the end, you'll know the twelve Django concepts behind this page, and the one change that brings twenty-one down to one.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ curl -sI localhost:8000/tasks/open/HTTP/1.1 200 OK
Date: Wed, 25 Nov 2026 03:27:19 GMT
Server: WSGIServer/0.2 CPython/3.12.3
Content-Type: text/html; charset=utf-8
X-Queries: 21
X-Frame-Options: DENY
Content-Length: 1454
X-Content-Type-Options: nosniff
Referrer-Policy: same-origin
Cross-Origin-Opener-Policy: same-origin

Here's where those concepts live. A request comes in from the browser. It's wrapped by middleware, matched by its address to a view, and the view is just a Python function. The view asks models for data, models ask the database, and a template turns the data into HTML. The answer goes back the same way.

One request's path through Django: diagram of the browser, middleware, URLs, a view, a template, models, the database, Ben's project: renovate

Project and apps

First, two words people mix up: project and app. The project is the whole site. Start project made a folder named renovate, with the settings and the main list of URLs. The dot at the end means right here. It also made manage.py, the helper you run every other command through. An app is one part of the site, with its own models and views. Ben's one app is jobs. A bigger site has several apps, like invoices or a blog.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ django-admin startproject renovate .
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ python manage.py startapp jobs
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ ls renovate__init__.py  __pycache__  asgi.py  settings.py  urls.py  wsgi.py
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ ls jobs__init__.py  admin.py  apps.py  migrations  models.py  tests.py  views.py

Settings

Forget one line in one file, and Django won't even see Ben's app. That file is settings.py. DEBUG True gives detailed error pages while you build. DATABASES says where the data lives: a SQLite file, unless you change it. And INSTALLED_APPS lists the apps Django loads. Ben added jobs by hand, on the last line. Forget that line, and Django never looks for its templates or models.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ grep -n '^DEBUG\|^INSTALLED_APPS\|^DATABASES\|^MIDDLEWARE\|^LOGIN' renovate/settings.py26:DEBUG = True
33:INSTALLED_APPS = [
43:MIDDLEWARE = [
77:DATABASES = {
131:LOGIN_REDIRECT_URL = "/mine/"
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ grep -A8 '^INSTALLED_APPS' renovate/settings.pyINSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'jobs',
]

URLs

URLs pick which view answers. Think of the directory board in a building's lobby: find the name, and it tells you the floor. Ben's main urls.py sends anything starting with admin to Django's admin, and hands everything else to the jobs app's own urls.py.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ sed -n '/^urlpatterns/,$p' renovate/urls.pyurlpatterns = [
    path("admin/", admin.site.urls),
    path("accounts/", include("django.contrib.auth.urls")),
    path("", include("jobs.urls")),
]

Here's one pattern from that list: jobs, slash, then a number in angle brackets. The int part means it only matches digits. The pk part, short for primary key, the job's ID number, is the name the number gets, and Django hands it to the view. So slash jobs slash two calls job detail with pk equal to two.

One URL pattern, taken apart: diagram of path("jobs/<int:pk>/", views.job_detail), jobs/ = fixed text, int = a converter, pk = the name, views.job_detail = the view, /jobs/2/ -> job_detail(request, pk=2)

Slash jobs slash a b c has no digits, so no pattern matches. With DEBUG on, the 404 page lists every pattern it tried, like a name that isn't on the directory board.

URLs: browser screenshot from the video

Views

A view is a Python function. It takes the request and returns a response. Ben's job detail view gets pk from the URL. It fetches that job, or returns a 404 if there isn't one. Then it renders a template with the job in it. The same view handles the add-a-task form. A GET is the browser asking for the page, so it just shows it. A POST is the browser sending the form, so it saves the task and sends the browser back to the page.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ sed -n '/^def job_detail/,/^$/p' jobs/views.pydef job_detail(request, pk):
    job = get_object_or_404(Job, pk=pk)
    form = TaskForm(request.POST or None)
    if request.method == "POST" and form.is_valid():
        task = form.save(commit=False)
        task.job = job
        task.save()
        return redirect(f"/jobs/{job.pk}/")
    return render(request, "jobs/job.html", {"job": job, "form": form})

So what about slash jobs slash ninety-nine? The pattern matches, but there's no job ninety-nine. Guess first. Also a 404, but a different one: no job matches the given query. The first 404 came from the URL list. This one came from the view.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ curl -s -o /dev/null -w '%{http_code}\n' localhost:8000/jobs/99/404
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ curl -s localhost:8000/jobs/99/ | grep -o 'No Job matches the given query.'No Job matches the given query.
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ curl -s localhost:8000/jobs/abc/ | grep -o 'didn.t match any of these'didn’t match any of these

Templates

Ben's pages all share one header and one frame. Does he copy it into every file? No. A template is HTML with blanks Django fills in, and tags in percent signs that shape the page. Ben writes the page frame once, in base.html, with named blocks. Every other page starts with extends, and fills only its own blocks. That's template inheritance: change the frame once, every page follows. The blanks are the double curly braces, like task dot room. Django fills them from the context, the dictionary the view passed in.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ grep -h 'extends\|block content\|{{ task' jobs/templates/jobs/{base,open}.html{% block content %}{% endblock %}
{% extends "jobs/base.html" %}
{% block content %}
<h1>Open tasks ({{ tasks|length }})</h1>
  <li>{{ task.job.address }}: {{ task.room }}, {{ task.title }}</li>

Templates also protect you. Someone typed bold tags into a task's title. Django printed them as plain text, not as HTML. That's automatic escaping: whatever people type into your site can't turn into code on your page.

Templates: browser screenshot of shown as text, not bold

Models

A model is a Python class that describes one kind of thing you store. Each model becomes a table, and each field becomes a column. A Task has a room, a title, and a done field that's true or false. And ForeignKey links each task to its job, so one house has many tasks. You never write create table yourself: that's the next concept's job.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ sed -n '4,20p' jobs/models.pyclass Job(models.Model):
    address = models.CharField(max_length=100)
    client = models.CharField(max_length=60)

    def __str__(self):
        return self.address


class Task(models.Model):
    job = models.ForeignKey(Job, on_delete=models.CASCADE, related_name="tasks")
    room = models.CharField(max_length=40)
    title = models.CharField(max_length=100)
    done = models.BooleanField(default=False)

    def __str__(self):
        return f"{self.room}: {self.title}"

Migrations

But a class isn't a table yet. Make migrations writes a migration: a small file that describes the change. S Q L migrate shows the S Q L that file will run, create table jobs task. Then migrate runs it.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ python manage.py makemigrationsMigrations for 'jobs':
  jobs/migrations/0001_initial.py
    + Create model Job
    + Create model Task
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ python manage.py sqlmigrate jobs 0001BEGIN;
--
-- Create model Job
--
CREATE TABLE "jobs_job" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "address" varchar(100) NOT NULL, "client" varchar(60) NOT NULL);
--
-- Create model Task
--
CREATE TABLE "jobs_task" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "room" varchar(40) NOT NULL, "title" varchar(100) NOT NULL, "done" bool NOT NULL, "job_id" bigint NOT NULL REFERENCES "jobs_job" ("id") DEFERRABLE INITIALLY DEFERRED);
CREATE INDEX "jobs_task_job_id_6fefee23" ON "jobs_task" ("job_id");
COMMIT;

Later, Ben gives each task a person: assigned to. A second migration adds just that field, migrate applies it, and show migrations ticks off both. The migration files go in Git with your code, so every copy of the site builds the same tables.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ python manage.py makemigrationsMigrations for 'jobs':
  jobs/migrations/0002_task_assigned_to.py
    + Add field assigned_to to task
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ python manage.py migrateOperations to perform:
  Apply all migrations: admin, auth, contenttypes, jobs, sessions
Running migrations:
  Applying jobs.0002_task_assigned_to... OK
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ python manage.py showmigrations jobsjobs
 [X] 0001_initial
 [X] 0002_task_assigned_to

QuerySets

Back to those twenty-one questions: this is where Django asks them. To watch it happen, Ben opens the shell, a Python prompt with his project loaded and his models already imported.

Ben's laptop: python manage.py shell
(.venv) ben@laptop:~/renovate$ python manage.py shell14 objects imported automatically (use -v 2 for details).

Python 3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
Ben's laptop: python manage.py shell
>>> from django.db import connection

A QuerySet is a question you haven't asked yet. Every model has a handle on its table, called objects. Ben writes Task dot objects dot filter, done equals False. Nothing runs. connection dot queries, Django's list of the S Q L it has run, still holds zero. Only when he asks for the count does Django run one.

Ben's laptop: python manage.py shell
>>> tasks = Task.objects.filter(done=False)
Ben's laptop: python manage.py shell
>>> len(connection.queries)0
Ben's laptop: python manage.py shell
>>> tasks.count()20
Ben's laptop: python manage.py shell
>>> len(connection.queries)1

Curious what it asked? Print the QuerySet's query: plain SQL. Select from jobs task, where done is false. That's the ORM, the object relational mapper: you write Python, and Django writes the SQL for whichever database you use.

Ben's laptop: python manage.py shell
>>> print(tasks.query)SELECT "jobs_task"."id", "jobs_task"."job_id", "jobs_task"."room", "jobs_task"."title", "jobs_task"."done", "jobs_task"."assigned_to_id" FROM "jobs_task" WHERE "jobs_task"."done" = False

You can add to a QuerySet before it runs: filter open tasks again for the kitchen, four. And get expects exactly one row. Ask for P K ninety-nine, the job with ID ninety-nine, and it raises DoesNotExist, the error that the view turned into a 404.

Ben's laptop: python manage.py shell
>>> tasks.filter(room='Kitchen').count()4
Ben's laptop: python manage.py shell
>>> Job.objects.get(pk=99)Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/ben/renovate/.venv/lib/python3.12/site-packages/django/db/models/manager.py", line 87, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/renovate/.venv/lib/python3.12/site-packages/django/db/models/query.py", line 722, in get
    raise self.model.DoesNotExist(
jobs.models.Job.DoesNotExist: Job matching query does not exist.

So where did twenty-one come from? The view asks once for twenty tasks. Then the template prints each task's house address, and every task fetches its job on its own: twenty more queries. Call the number of tasks N: one query for the list, plus N for the houses. That's the N plus one problem.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ grep -n 'task.job.address' jobs/templates/jobs/open.html7:  <li>{{ task.job.address }}: {{ task.room }}, {{ task.title }}</li>

The fix is one method on the QuerySet: select_related, with the field's name.

One change in the view: code change of jobs/views.py, tasks = Task.objects.filter(done=False).select_related("job") (one method added)

How many queries now? Guess first. One. Django joins the two tables and brings each task's house along. Same twenty tasks, one trip.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ curl -sI localhost:8000/tasks/open/ | grep -i x-queriesX-Queries: 1
Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ curl -s localhost:8000/tasks/open/ | grep -c '<li>'20

The admin

Ben's office manager needs to fix a typo in a task, and she can't edit Python. Django already built a back office: the admin. Ben registers his models in admin.py and picks the columns and a filter.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ sed -n '3,$p' jobs/admin.pyfrom .models import Job, Task


@admin.register(Task)
class TaskAdmin(admin.ModelAdmin):
    list_display = ["room", "title", "job", "done"]
    list_filter = ["done"]


admin.site.register(Job)

That's the whole setup. It lives at slash admin, and Ben signs in with the superuser account he made with create superuser. Staff can now find, fix and add tasks without writing any code. It's for the people who run the site, not for customers.

The admin: browser screenshot of done: No

Forms

What stops someone adding a task with a blank title? A form. It checks what people type before it reaches a model. Ben's form for a new task wants a room and a title. Type three spaces for the title, and the form strips them, finds nothing, and shows the message: this field is required. The form also carries a CSRF token, short for cross-site request forgery: a hidden secret. Django checks it every time a form is sent, so another website can't send this form in your name.

Forms: browser screenshot of carries a hidden CSRF token

In the shell it's the same check. is_valid says False, and errors names the field and the reason. Your view saves only when is_valid is True.

Ben's laptop: python manage.py shell
>>> form = TaskForm(data={'room': 'Bathroom', 'title': '   '})
Ben's laptop: python manage.py shell
>>> form.is_valid()False
Ben's laptop: python manage.py shell
>>> form.errors{'title': ['This field is required.']}

Middleware

Something had to wrap every page to count those queries. That's middleware: code that wraps every request and every response. Django ships seven in the list: sessions, CSRF checks, signing people in. Order matters: a request passes down the list, top to bottom, and the response comes back up. Signing in reads the session, Django's memory of who you are between pages, so it sits below the session one. The last one is Ben's, and it's the one that counted those twenty-one queries.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ grep -A9 '^MIDDLEWARE' renovate/settings.pyMIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'jobs.middleware.QueryCountMiddleware',
]

It's a dozen lines. Count the queries so far, call get response, which runs the view, count again, and put the difference in a header, a note sent with the page. Every page on the site now reports its own number.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ cat jobs/middleware.pyfrom django.db import connection


class QueryCountMiddleware:
    def __init__(self, get_response):
        self.get_response = get_response

    def __call__(self, request):
        before = len(connection.queries)
        response = self.get_response(request)
        response["X-Queries"] = len(connection.queries) - before
        return response

Users and sessions

Last, users and sessions. Ana should see her own tasks, and a stranger none. Ben put login_required on the line just above his my tasks view: a marker that means signed-in users only. Ask for it signed out, and Django answers 302: go to the login page, then come back to slash mine.

Ben's laptop: ~/renovate
(.venv) ben@laptop:~/renovate$ curl -sI localhost:8000/mine/ | grep -i '^HTTP\|^location'HTTP/1.1 302 Found
Location: /accounts/login/?next=/mine/

Ana, one of Ben's crew, signs in, and lands on her own three tasks.

Users and sessions: browser screenshot from the video

How does the next page know it's her? A session: one row in the database. Decoded, it says user two, and user two is Ana. Her browser holds only a random key to that row, in a cookie named sessionid. Sign out, and the row is deleted. That's why there's only one: Ben signed out of the admin earlier.

Ben's laptop: python manage.py shell
>>> Session.objects.count()1
Ben's laptop: python manage.py shell
>>> Session.objects.first().get_decoded()['_auth_user_id']'2'
Ben's laptop: python manage.py shell
>>> User.objects.get(username='ana').pk2

What comes next

Three more you'll meet soon. Class-based views: a view written as a class, like ListView, for pages every site has. Static files: your CSS and images, served differently once the site is live. And tests: manage.py test runs them against a throwaway copy of your database.

Three you'll meet next: diagram of Class-based views, Static files, Tests

Recap

Twelve concepts, one path. Middleware wraps the request, URLs pick the view, the view asks models, and a template draws the answer. And when a page feels slow, count its queries first.

Twelve concepts, one path: diagram of the browser, middleware, URLs, a view, a template, models, the database, Ben's project: renovate

If the Django words are less of a blur now, subscribing brings the next one your way.

The job board's code and every command are linked in the description. Thanks for watching Cloud Explainers.

Sources

Demos: a container on our own Mac standing in for a laptop; the renovation company is made up. Django was downloaded from PyPI during the run. Every command, error and number was real. Watch the full video on YouTube.

More videos

PostgreSQL9 min

Every PostgreSQL Setting to Change After You Install It

Docker9 min

What Happens When You Install Docker on Ubuntu

Python8 min

How to Fix Python 'Address Already in Use' Errors

Go (Golang)5 min

Golang Interfaces and Mocks in 5 Minutes

Git7 min

How to Fix Git 'Detached HEAD' State

Linux21 min

Linux Firewall with ufw: Full Tutorial for Beginners

Go (Golang)5 min

Golang defer Statements in 5 Minutes

Auth (OAuth, JWT)9 min

How to Fix OAuth 'invalid_grant' Errors

Databases & SQL11 min

The SQL Roadmap for Beginners

Go (Golang)5 min

Golang make() for Slices and Maps in 5 Minutes

Networking7 min

How to Fix Network 'No Route to Host' Errors on Linux

Linux6 min

How to Fix Linux 'Too Many Open Files' Errors

Linux24 min

SSH on Linux: Full Tutorial for Beginners

Go (Golang)5 min

Golang for range Loops in 5 Minutes

Databases & SQL10 min

SQL Databases: SQLite vs PostgreSQL

Django (Python web framework)10 min

The Django Roadmap for Beginners

Go (Golang)5 min

Golang Structs in 5 Minutes

Caching & Redis22 min

Redis: Full Tutorial for Beginners

Go (Golang)5 min

Golang context.Context in 5 Minutes

Databases & SQL7 min

How to Fix MySQL Database Error 1045: Access Denied for User

Go (Golang)5 min

Golang Method Receivers in 5 Minutes

Python8 min

How to Fix Python SSL: CERTIFICATE_VERIFY_FAILED Errors

Django (Python web framework)9 min

How to Fix Django Static Files Not Loading in Production

OpenRouter (one API for many AI models)8 min

OpenRouter vs Direct API Keys: Which One Should You Use?

Go (Golang)5 min

Golang if err != nil Checks in 5 Minutes

Go (Golang)8 min

How to Fix Golang 'go.mod File Not Found' Errors

AI agents & MCP22 min

MCP Servers: Full Tutorial for Beginners

Go (Golang)5 min

Golang Error Return Values in 5 Minutes

Python8 min

How to Fix Python ModuleNotFoundError: No Module Named

Go (Golang)5 min

Golang Pointers in 5 Minutes

Kubernetes8 min

How to Fix a Kubernetes Pod Stuck in CrashLoopBackOff

Homelab & self-hosting9 min

How to Fix a Homelab ESXi Host Not Responding

PostgreSQL24 min

PostgreSQL: Full Tutorial for Beginners

Load balancing & Nginx9 min

How a Load Balancer Works with HAProxy

Python9 min

How Python Virtual Environments Work

Homelab & self-hosting9 min

How to Fix Cloudflare Tunnel Errors in a Homelab

APIs9 min

How to Fix API CORS Errors: No 'Access-Control-Allow-Origin'

Auth (OAuth, JWT)9 min

How Authenticator App Login Codes Work (TOTP)

Git22 min

Git and GitHub: Full Tutorial for Beginners

Homelab & self-hosting10 min

How a Homelab Hypervisor Works (VMware ESXi)

Kubernetes9 min

How to Fix Kubernetes ImagePullBackOff Errors

DNS8 min

How to Fix DNS 'Temporary Failure in Name Resolution' on Linux

AWS8 min

How to Fix AWS CLI 'Unable to Locate Credentials'

Homelab & self-hosting10 min

Proxmox vs ESXi for Your Homelab: When Each One Wins

PostgreSQL10 min

PostgreSQL UUID vs Auto Increment: Which Primary Key Should You Use?

Kubernetes21 min

Kubernetes: Full Tutorial for Beginners

Networking9 min

How TCP Sockets Work

PostgreSQL7 min

How to Fix PostgreSQL 'Could Not Connect to Server'

Claude & the Claude Developer Platform9 min

Claude Code Hooks Will Finally Make Sense After This

DevOps & CI/CD9 min

DevOps with Ansible Will Finally Make Sense After This

Networking9 min

How SNMP Network Monitoring Works

Git8 min

How to Fix GitHub 'Permission Denied (publickey)' Errors

Docker21 min

Docker: Full Tutorial for Beginners

PostgreSQL7 min

How to Fix PostgreSQL 'Password Authentication Failed'

Linux8 min

Why One Linux Server Handles More Users Than You Think

Networking7 min

How to Fix Network 'Connection Refused' Errors

DevOps & CI/CD9 min

DevOps Pipelines: Jenkins vs GitHub Actions

Linux11 min

Linux Nginx Reverse Proxy: Full Tutorial for Beginners

Networking11 min

Every Networking Term a Beginner Needs in 12 Minutes

Docker6 min

How to Fix Docker 'Permission Denied' on docker.sock

Git7 min

How to Fix Git 'Updates Were Rejected' When You Push

Linux7 min

How to Fix nginx 502 Bad Gateway Errors on Linux

Linux8 min

How to Fix Linux apt 'Could Not Get Lock' Errors (Ubuntu)

Networking9 min

How Email Works on the Internet (SMTP) in 10 Minutes

Python8 min

The Python Roadmap for Beginners

Go (Golang)21 min

Golang REST API with Gin: Full Tutorial for Beginners

Networking10 min

How a WireGuard VPN Network Works

Linux9 min

Linux Makefiles Will Finally Make Sense After This

Auth (OAuth, JWT)9 min

SAML vs OAuth vs OpenID Connect: What's the Difference?

Python7 min

How to Fix Python cron Jobs That Never Run

Linux22 min

Linux Bash Scripting: Full Tutorial for Beginners

Networking10 min

How PXE Network Boot Works

Active Directory9 min

How Active Directory Works

Linux10 min

How to Fix a Linux systemd Service That Won't Start

Linux9 min

Linux Logs: syslog vs journald

Auth (OAuth, JWT)9 min

JWT vs Session Cookies: Which One Should You Use?

Docker10 min

Docker vs Docker Compose: Which One Should You Use?

Docker9 min

How to Fix Docker Compose Containers That Can't Talk to Each Other

Django (Python web framework)22 min

Django Full Tutorial for Beginners

Linux9 min

How Linux systemd Works

Networking8 min

How to Fix 'Windows Cannot Access' Network Share Errors (SMB)

APIs10 min

REST vs gRPC: Which One Should You Use?

Certificates & PKI (ADCS)9 min

How to Fix SSL Certificate Chain Errors (Missing Intermediate)

Python9 min

Every Python Concept for Beginners in 10 Minutes

Databases & SQL9 min

Every SQL Join Type in 10 Minutes

OpenRouter (one API for many AI models)9 min

Why OpenRouter Free Models Hit Their Limit So Fast

Gemini API & Google AI Studio9 min

Why Your Gemini API Free Tier Runs Out So Fast

OpenRouter (one API for many AI models)10 min

OpenRouter Will Finally Make Sense After This

Caching & Redis10 min

How Redis Caching Works

Gemini API & Google AI Studio10 min

Gemini API vs Vertex AI: Which One Should You Use?

Gemini API & Google AI Studio8 min

How to Fix a Leaked Gemini API Key

Go (Golang)9 min

Why Golang Uses Goroutines Instead of Threads

Gemini API & Google AI Studio9 min

How to Fix Gemini API Error 429: Resource Exhausted

Claude & the Claude Developer Platform10 min

Claude Token Pricing Will Finally Make Sense After This

Python11 min

Why Python Web Scraping Returns Nothing (and the Fix)

Python10 min

Python uv vs pip: Which One Should You Use?

Python22 min

Python Automation: Full Tutorial for Beginners

Auth (OAuth, JWT)9 min

How OAuth Login Works

Gemini API & Google AI Studio10 min

Google AI Studio Will Finally Make Sense After This

Docker10 min

What Happens When You Run a Docker Container

Claude & the Claude Developer Platform8 min

How to Fix Claude Code Billing Your API Key Instead of Your Plan

Auth (OAuth, JWT)9 min

Why Passkeys Can't Be Phished Like Passwords

PowerShell10 min

PowerShell vs Bash: Which One Should You Learn?

Linux10 min

The Linux Roadmap for Beginners

Django (Python web framework)9 min

Django vs FastAPI: Which One Should You Use?

Databases & SQL10 min

Why SQLite Is the Most Used Database in the World

Databases & SQL11 min

How a NoSQL Database Like MongoDB Works

Python11 min

How to Fix Python pip error: externally-managed-environment

Databases & SQL9 min

How to Fix MySQL Too Many Connections Database Errors

Go (Golang)9 min

Golang Concurrency Will Finally Make Sense After This

AWS10 min

How Amazon S3 Works

Kubernetes10 min

How Kubernetes Works

Git10 min

How Git Works

Docker10 min

How to Fix Docker Port Already Allocated Errors

PostgreSQL10 min

How PostgreSQL Works

Git8 min

How to Fix Git Merge Conflicts

Linux9 min

How to Fix No Space Left on Device in Linux

Networking10 min

How the Internet Works

Databases & SQL9 min

SQL vs NoSQL: When Each One Wins

Auth (OAuth, JWT)8 min

How to Fix JWT Token Expired Errors (401 Unauthorized)

Claude & the Claude Developer Platform9 min

Claude API vs Claude Pro: Why Your Subscription Doesn't Include It

AI agent skills9 min

Why AI Agent Skills Beat Giant Prompts

Linux10 min

Linux Cron Jobs Will Finally Make Sense After This

Cybersecurity10 min

Security Logs Will Finally Make Sense After This

Cybersecurity8 min

How to Fix a Security Leak: An API Key Pushed to GitHub

DNS9 min

DNS Will Finally Make Sense After This

Cybersecurity9 min

Never Ignore a Security Update

Auth (OAuth, JWT)9 min

Two-Factor Authentication Will Finally Make Sense

Networking8 min

Never Expose a Database to the Internet

Cybersecurity10 min

SSH Keys vs Passwords: Which Is Safer for Security?

Linux10 min

The 5 Levels of Linux Boot: From Power On to Login

Networking12 min

The 5 Levels of Network Firewalls

Cybersecurity10 min

Password Security: Why Hackers Crack Weak Passwords

Linux9 min

Why Your Linux Server Runs Out of Memory

Networking10 min

HTTP vs HTTPS: What Actually Changes on Your Network

Linux12 min

Every Linux File Permission You Need to Know

Linux10 min

Linux Processes vs Threads: When Each One Wins

Networking11 min

The OSI Model Will Finally Make Sense After This

Git11 min

The 7 Levels of Git

Networking10 min

Every Network Troubleshooting Command You Need

Cybersecurity10 min

Hashing vs Encryption in Cybersecurity: When Each One Wins

Networking11 min

Why the Internet Ran Out of IP Addresses

Linux11 min

Linux Package Managers: apt vs Snap vs Flatpak

Python9 min

Why Python Is Slow (and When It Doesn't Matter)

Networking11 min

TCP vs UDP: When Each One Wins

Linux8 min

Stop Running Linux as Root (Do This Instead)

Linux11 min

Linux Users and Groups Will Finally Make Sense

Cybersecurity9 min

Why Phishing Beats Good Security (and How to Spot It)

Docker12 min

The 7 Levels of Docker

AI agents & MCP12 min

AI Agents Will Finally Make Sense After This

Git8 min

Stop Using git push --force (Use This Instead)

AI agent skills10 min

Agent Skills vs MCP: When Each One Wins

Networking12 min

Networking Will Finally Make Sense After This

Linux12 min

Every Linux Command You Actually Need

Cybersecurity12 min

The 7 Levels of Cybersecurity

System design12 min

Every System Design Concept You Need, in One Diagram

PostgreSQL10 min

Why PostgreSQL Ignores Your Index