Skip to content

Django In-Depth Series Course

This series covers all key points of the Django framework and can be used as a knowledge base. In other projects, I will reference related chapters as background knowledge. You can read this course in order or jump to specific sections. Each chapter includes code examples.

Basics

Chapter 1: First Look at Django

  • 1.1 Hello, Django!
    • Web framework concepts
    • Django design philosophy (DRY, rapid development)
    • Django vs other frameworks comparison
  • 1.2 Django Environment Setup
    • Python environment requirements
    • Virtual environment creation (venv)
    • Django 5.x installation
    • Recommended development tools
  • 1.3 First Django Project
    • Create project: django-admin startproject
    • Project structure analysis
    • Run development server
    • Hello World example

Chapter 2: Django MTV Architecture

Chapter 3: URL Routing System

Models and Database

Chapter 4: Django Models

Chapter 5: Database Operations

Views and Templates

Chapter 6: Django Views

  • 6.1 Django Function Views
    • Basic function views
    • HttpRequest and HttpResponse
    • View decorators
    • Error handling
  • 6.2 Django Class Views
    • View base class
    • Generic views concepts
    • TemplateView example
    • Inheritance and mixins
  • 6.3 Django Generic Views Explained
    • ListView
    • DetailView
    • CreateView
    • UpdateView
    • DeleteView
    • Complete CRUD example

Chapter 7: Template System

Forms and User Interaction

Chapter 8: Django Forms

Chapter 9: User Authentication System

Advanced Features

Chapter 10: Django Admin

Chapter 11: Static and Media Files

Chapter 12: Middleware and Signals

Practical Projects

Chapter 13: Complete Blog System

Chapter 14: API Development

Deployment and Optimization

Chapter 15: Testing

Chapter 16: Performance Optimization

Chapter 17: Deployment

Released under the [BY-NC-ND License](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en).