Skip to content

Different ways to Query model object, the return type and exception when missing: https://docs.djangoproject.com/en/5.2/intro/overview/#enjoy-the-free-api Migrations and Schema Control?

Dedicated pages for Admin Site, Settings.py

Cover URLs.py and URLConf (or URL Dispatcher) in views, also how each URL is interpreted in order by Django and what happens if no match found. Also cover URL variables and how they are passed to views. Also, cover request body and response in views. also cover urls.py for each app. also cover urls ending with and without slashes. When to use include(): You should always use include() when you include other URL patterns. The only exception is admin.site.urls, which is a pre-built URLconf provided by Django for the default admin site.

Cover Template System, template inheritance and template search path in Templates and Settings.py config later in Settings.py. Also, cover different tags for variable substitution. Also, custom custom filters and tags. Also, cover Static and Media files here.

Incorporate this somewhere - "Note that you don’t have to use Django’s template system if you prefer another system. While Django’s template system is particularly well-integrated with Django’s model layer, nothing forces you to use it. For that matter, you don’t have to use Django’s database API, either. You can use another database abstraction layer, you can read XML files, you can read files off disk, or anything you want. Each piece of Django – models, views, templates – is decoupled from the next."

Find a place for these: https://docs.djangoproject.com/en/5.2/ref/django-admin/

📖 Book Outline: Django & Django REST Framework

  1. Introduction Why Django? Django vs. Other Frameworks What This Book Covers
  2. Getting Started Installing Python & Django Creating Your First Project Project Structure Explained Running the Development Server
  3. Django Basics Apps & the Django Philosophy Models, Views, Templates (MVT) URL Routing Static Files & Media Files
  4. Models & Database Defining Models Migrations QuerySets & Managers Relationships (One-to-One, Many-to-One, Many-to-Many)
  5. Django Admin Activating the Admin Customizing the Admin ModelAdmin Options Useful Admin Tricks
  6. Forms & User Input Django Forms ModelForms Form Validation CSRF Protection
  7. Authentication & Users Built-in User Model Extending User Model Authentication Views (Login, Logout, Passwords) Permissions & Groups
  8. Django Templates Template Language (DTL) Basics Template Tags & Filters Inheritance & Reusability Context Processors
  9. Class-Based Views (CBVs) Function-Based vs Class-Based Views Generic Views Mixins Best Practices
  10. Middleware & Settings Understanding Middleware Built-in Middleware Custom Middleware Project Settings & Environments
  11. Testing Django Testing Framework Unit Tests for Models & Views Client & RequestFactory Coverage & Best Practices
  12. Deployment Collectstatic & Media Gunicorn & Nginx Environment Variables Common Deployment Gotchas
  13. Django REST Framework (Final Chapter) Why DRF? Serializers Views & ViewSets Routers Authentication & Permissions Pagination & Filtering Browsable API Connecting DRF with Django Project