Skip to content
Learn Netverks

Lesson

Step 1/36 3% through track

intro

Introduction to Django

Last reviewed May 28, 2026 Content v20260528
Track mode
server_script
Means
Server runner
Reading
~3 min
Level
beginner

This lesson

An orientation to the Django track—how the server playground works, core vocabulary, and what you will practice next.

You need a clear map of the Django track so MVT, the ORM, and project layout do not feel like magic.

You will apply Introduction to Django in contexts like: SaaS dashboards, CMS-style products, internal tools, and APIs paired with React or mobile clients.

Write Python 3 in the editor and click Run on server—the dev runner executes your script; Django framework lessons also use local startproject for full MVT (LEARNING_RUNNER_ENABLED=true). Also read the interview prep blocks.

After HTML fundamentals and basic programming concepts—before or alongside SQL.

How this Django track works

  • Python in the playground — runnable code executes as plain Python 3 with print(), dicts, lists, and classes that simulate ORM/queryset ideas. Click Run to execute.
  • Django framework in prosemanage.py, settings.py, models, migrations, templates, and admin are taught with file trees and command examples. Install Django locally with pip install django for full MVT practice.
  • Prerequisites — finish Python (variables, functions, classes) and HTML (forms, semantic markup). Compare backend context with PHP and Node.js request–response lessons.

The runner does not ship Django itself—lessons simulate ORM patterns in Python so concepts stick before you run django-admin startproject on your machine.

Install on your device (macOS, Linux, Windows)

Install Python 3.11+ locally for notebooks and frameworks; the on-site playground uses the dev runner when enabled.

macOS

  1. brew install python@3.12 or install from python.org (check “Add to PATH” on installers).
  2. Create a project folder: mkdir ~/python-practice && cd ~/python-practice.
  3. python3 -m venv .venv && source .venv/bin/activate
  4. pip install --upgrade pip

Linux

  1. Debian/Ubuntu: sudo apt update && sudo apt install -y python3 python3-pip python3-venv
  2. Fedora: sudo dnf install -y python3 python3-pip
  3. python3 -m venv .venv && source .venv/bin/activate
  4. pip install --upgrade pip

Windows

  1. Install from python.org and enable Add python.exe to PATH.
  2. Or: winget install Python.Python.3.12
  3. PowerShell: py -3 -m venv .venv; .\.venv\Scripts\Activate.ps1
  4. pip install --upgrade pip

Verify: python3 --version (or py --version on Windows) shows 3.11+.

Run code on this site (Backend & language playgrounds)

  1. Clone or open this project locally; copy .env.example to .env.
  2. Ensure LEARNING_RUNNER_ENABLED=true and LEARNING_RUNNER_URL=http://127.0.0.1:9999/v1/execute.
  3. Terminal 1: php artisan serve (or composer run dev for Laravel + Vite + runner together).
  4. Terminal 2: npm run runner — keep it running while you click Run on server.

After Python is ready: pip install "django>=5.0" then django-admin startproject mysite.

Django is a high-level Python web framework for building secure, database-backed sites and APIs quickly. It ships batteries included: ORM, admin panel, forms, authentication, and templating—so you focus on your product instead of reinventing HTTP plumbing.

How this track differs from plain Python

After the Python track, you know variables, functions, classes, and modules. Django adds a project structure—settings, URLs, views, models, templates—and conventions that scale from hobby blogs to Instagram-scale deployments (with tuning).

Compare with PHP and Node.js: all three handle HTTP requests and talk to databases, but Django's ORM and admin are especially productive for CRUD-heavy apps.

What you will learn

  • MVT architecture: models, views, templates, and URL routing
  • Python refresher tailored to Django patterns
  • Project layout: manage.py, settings.py, apps, and static files
  • ORM models, migrations, querysets, admin, and forms
  • Class-based views, validation, messages, auth basics, middleware, testing, and deployment habits

Playground setup

This topic uses the server_script profile: runnable code is plain Python 3 with print(). Lessons simulate ORM/queryset ideas with dicts and classes. Full Django (pip install django, runserver) runs on your local machine—file trees and commands in prose teach the real workflow.

Self-check

  1. In one sentence, what problem does Django solve for web developers?
  2. Why is Python a prerequisite before this track?

Interview prep

What is Django in one sentence?

Django is a batteries-included Python web framework for building secure, database-backed sites and APIs with ORM, admin, forms, and auth built in.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • Why Django after Python?
  • First app you would build?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump