Django · Intermediate READ & PRACTISE

Django Fundamentals

Go from plain Python scripts to a real, structured web application — URLs, views, templates, and talking to a database.

1

units

11

lessons

22

practice questions

~165

minutes

Start learning today

Create a free account, then unlock this and every other Pro course with Learnix Pro for KES 999/month.

Create free account I already have an account

Outcomes

What you'll be able to do

Understand what a web framework actually does for you

Define URLs and connect them to views

Render HTML pages with Django's template language

Define a model and let Django manage the database table for you

Handle form submissions safely

Use the Django admin to manage data without writing extra code

How it works

Read it, see it, practise it

Each lesson explains one topic clearly, shows worked examples, checks your understanding with quick questions and ends with a practical task you complete yourself.

Clear explanations

Step-by-step lessons in plain language

16 in this course

Worked examples

Real code and examples you can copy and run

54 in this course

Quick checks

Test your understanding as you go

11 in this course

Fill the blank

Recall the key commands and syntax

11 in this course

Hands-on workspace

A practical task at the end of every lesson

11 in this course

Syllabus

Everything you'll encounter

1

What is Django, and Why Use a Framework?

Writing a real website in plain Python means solving the same problems every project needs — Django solves most of them for you, so you can focus on what makes YOUR site different.

2

URLs and Views

A URL pattern says "when someone visits this address, run this piece of code" — that piece of code is called a view.

3

Templates

A template is mostly ordinary HTML, with a small bit of extra syntax that lets you drop in real data and repeat or branch based on it.

4

Models & the ORM

A Model is a Python class that represents a database table — Django's ORM lets you query and save data using normal Python, with no SQL required.

5

Forms

Django's Form classes handle displaying an HTML form AND validating what comes back — both from the same definition.

6

The Django Admin & Basic CRUD

Django can generate a working admin panel for managing your data automatically, from just a few lines — and CRUD (Create, Read, Update, Delete) is just as short in regular views.

7

ModelForms: Forms That Match Your Models

A ModelForm builds an entire form directly from a Model's fields — so you never have to declare the same fields twice and keep both copies in sync by hand.

8

User Authentication: Login, Logout, and Registration

Django ships with a complete, battle-tested authentication system out of the box — you almost never need to write your own password hashing or session handling.

9

Template Inheritance, Tags, and Filters

Copy-pasting the same header and navigation into every single template is exactly the repetition Django's template inheritance exists to eliminate.

10

Class-Based Views vs Function-Based Views

Every view so far has been a plain function — Django also lets you write views as classes, which can save real repetition for common patterns like "list all of these" or "show one of these".

11

Mini Project: Adding Comments to a Blog Post

Let's connect everything from this course into one real feature — a Model, a ForeignKey relationship, a ModelForm, a view, and a template — by adding comments to a blog post.

Finish the course, earn a verifiable certificate

Complete every lesson to receive a Learnix certificate with a unique number anyone can verify online.

Helping with:

🍪 We use essential cookies to keep you signed in, protect your account and remember your settings. We don't use advertising or tracking cookies. Read our Privacy Policy.