1. Django Fundamentals and Project Layout
Django is a high-level Python web framework designed for rapid development and clean, pragmatic design. It follows the Model-Template-View (MTV) architectural pattern, which separa...
Read full chapter →The essential Django Framework cheat sheet: 8 concise chapters you can read in minutes, distilled from the full deck. When you're ready, drill the flashcards or test yourself under exam conditions.
Django is a high-level Python web framework designed for rapid development and clean, pragmatic design. It follows the Model-Template-View (MTV) architectural pattern, which separa...
Read full chapter →Django models are Python classes that subclass django.db.models.Model, with each model mapping to a single database table and each class attribute representing a database column. T...
Read full chapter →The Django ORM lets developers interact with the database using Python code rather than raw SQL. The default manager on every model is objects, and the all() method returns a Query...
Read full chapter →Django views are Python callables that take an HttpRequest and return an HttpResponse. Function-based views (FBVs) are simple Python functions, while class-based views (CBVs) subcl...
Read full chapter →Django's template engine uses HTML files with special syntax to separate presentation from logic. Variables are output using double curly braces like {{ variable }}, template tags...
Read full chapter →Django forms handle HTML form rendering, validation, and data cleaning through Python classes. A form is defined by subclassing forms.Form and declaring fields like CharField and E...
Read full chapter →Middleware in Django is a framework of hooks that processes requests and responses globally. Each middleware is added to the MIDDLEWARE setting in settings.py and is executed in or...
Read full chapter →Django REST Framework (DRF) is a powerful toolkit for building Web APIs on top of Django. Its key components include Serializers for converting models to and from JSON, ViewSets fo...
Read full chapter →Done reading?
Test yourself with the Django Framework practice exam — timed questions, instant score, full review of wrong answers. Free.
🎯 Take the Practice Exam →