Skip to content

1.1 Overview of Basics

Play

Scales of a Network

Need a Demonstration?

Django Architecture: MVT (Model-View-Template)

Django follows the MVT pattern, similar to MVC:

ComponentRole
ModelHandles database interactions (data storage & retrieval).
ViewProcesses requests, interacts with models, and returns responses.
TemplateManages presentation (HTML, CSS, etc.).

📌 In Django, the View acts as the Controller in MVC.

Who Uses Django?

🔥 Instagram → Uses Django for handling millions of users
🔥 Pinterest → Django powers their image-heavy website
🔥 Spotify → Uses Django for backend services
🔥 NASA → Manages data with Django

Should You Learn Django?

✅ If you want to build web apps quickly
✅ If you need a secure, scalable backend
✅ If you prefer Python over JavaScript-heavy frameworks

1️⃣ Basic Commands

🔹 Check Django Version

Terminal window
python manage.py --version

🔹 Check Available Commands

Terminal window
python manage.py help

2️⃣ Database Management Commands

🔹 Apply Migrations

Terminal window
python manage.py migrate

This applies pending database migrations.

🔹 Create Migrations for Model Changes

Terminal window
python manage.py makemigrations