Django Framework

  1. Templates: The Presentation Layer
    1. The Django Template Language (DTL)
      1. Purpose and Features
        1. Template File Structure
          1. Template Loading
            1. Template Context
            2. Syntax
              1. Variables (`{{ variable }}`)
                1. Variable Resolution
                  1. Attribute Access
                    1. Dictionary Key Access
                      1. List Index Access
                      2. Tags (`{% tag %}`)
                        1. Block Tags
                          1. Inline Tags
                          2. Filters (`{{ variable|filter }}`)
                            1. Chaining Filters
                              1. Filter Arguments
                              2. Comments (`{# comment #}`)
                                1. Single-line Comments
                                  1. Multi-line Comments
                                2. Common Tags
                                  1. Conditional Tags
                                    1. `if`
                                      1. `elif`
                                        1. `else`
                                          1. `ifequal`
                                            1. `ifnotequal`
                                            2. Loop Tags
                                              1. `for`
                                                1. `empty`
                                                  1. `forloop` Variables
                                                  2. Template Structure Tags
                                                    1. `block`
                                                      1. `extends`
                                                        1. `include`
                                                        2. URL Tags
                                                          1. `url`
                                                            1. URL Namespacing
                                                            2. Security Tags
                                                              1. `csrf_token`
                                                                1. `autoescape`
                                                                2. Variable Tags
                                                                  1. `with`
                                                                    1. `load`
                                                                    2. Utility Tags
                                                                      1. `now`
                                                                        1. `spaceless`
                                                                          1. `verbatim`
                                                                            1. `widthratio`
                                                                              1. `cycle`
                                                                                1. `firstof`
                                                                                  1. `regroup`
                                                                                2. Common Filters
                                                                                  1. String Filters
                                                                                    1. `lower`
                                                                                      1. `upper`
                                                                                        1. `title`
                                                                                          1. `capfirst`
                                                                                            1. `truncatechars`
                                                                                              1. `truncatewords`
                                                                                                1. `linebreaks`
                                                                                                  1. `linebreaksbr`
                                                                                                    1. `safe`
                                                                                                      1. `escape`
                                                                                                        1. `slugify`
                                                                                                          1. `urlencode`
                                                                                                          2. Numeric Filters
                                                                                                            1. `add`
                                                                                                              1. `floatformat`
                                                                                                                1. `divisibleby`
                                                                                                                2. Date and Time Filters
                                                                                                                  1. `date`
                                                                                                                    1. `time`
                                                                                                                      1. `timesince`
                                                                                                                        1. `timeuntil`
                                                                                                                        2. List Filters
                                                                                                                          1. `length`
                                                                                                                            1. `first`
                                                                                                                              1. `last`
                                                                                                                                1. `join`
                                                                                                                                  1. `slice`
                                                                                                                                    1. `dictsort`
                                                                                                                                      1. `dictsortreversed`
                                                                                                                                      2. Logic Filters
                                                                                                                                        1. `default`
                                                                                                                                          1. `default_if_none`
                                                                                                                                            1. `yesno`
                                                                                                                                          2. Template Inheritance
                                                                                                                                            1. Creating `base.html`
                                                                                                                                              1. Using `{% extends %}`
                                                                                                                                                1. Defining and Overriding `{% block %}`
                                                                                                                                                  1. Template Hierarchies
                                                                                                                                                    1. Multiple Inheritance
                                                                                                                                                      1. Block Super
                                                                                                                                                      2. Template Configuration
                                                                                                                                                        1. Template Engines
                                                                                                                                                          1. Template Directories
                                                                                                                                                            1. Template Loaders
                                                                                                                                                              1. Context Processors
                                                                                                                                                                1. Built-in Context Processors
                                                                                                                                                                  1. Custom Context Processors
                                                                                                                                                                2. Custom Template Tags and Filters
                                                                                                                                                                  1. Creating a Template Tags Module
                                                                                                                                                                    1. Writing Custom Tags
                                                                                                                                                                      1. Simple Tags
                                                                                                                                                                        1. Inclusion Tags
                                                                                                                                                                          1. Assignment Tags
                                                                                                                                                                          2. Writing Custom Filters
                                                                                                                                                                            1. Filter Functions
                                                                                                                                                                              1. Filter Arguments
                                                                                                                                                                              2. Registering and Using Custom Tags/Filters
                                                                                                                                                                                1. Template Tag Libraries