| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-10-28 | Fixed #35899 -- Allowed multiline template tags. | =?UTF-8?q?Anders=20Hovm=C3=B6ller?= | |
| Co-authored-by: tim-mccurrach <34194722+tim-mccurrach@users.noreply.github.com> | |||
| 2026-10-09 | Fixed #37118 -- Added variable support to the {% now %} template tag. | zhengkangyang | |
| Thank you to Lily, Tim McCurrach and 사재혁 for reviews. | |||
| 2026-09-28 | Fixed #37374 -- Removed unused hyperlink targets pointing to nonexistent ↵ | HardMax71 | |
| docs pages. | |||
| 2026-09-03 | Refs #37293 -- Aliased RemovedInDjango70Warning to RemovedInDjango2028Warning. | Carlton Gibson | |
| Updated references to RemovedInDjango70Warning to use the new warning, and adjusted references to "Django 7.0" to "Django 2028". RemovedInDjango70Warning remains importable as an alias of the same class, so existing warning filters and except clauses in third-party code keep working across the rename. | |||
| 2026-07-21 | Fixed #37032 -- Documented that the CSRF context processor is always enabled ↵ | VIZZARD-X | |
| in its reference documentation. | |||
| 2026-05-20 | Removed versionadded/changed annotations for 6.0. | Sarah Boyce | |
| 2026-05-06 | Fixed #36784 -- Added csp_nonce_attr template tag for CSP nonce inclusion. | Natalia | |
| New default tag `{% csp_nonce_attr %}` was added for explicit CSP nonce inclusion into `<script>` and `<link>` elements. `{% csp_nonce_attr %}` renders `nonce="<value>"` when `csp_nonce` is present in the template context, and renders nothing otherwise. `{% csp_nonce_attr media %}` renders a `Media` object's assets with the nonce attr applied to each tag. Thanks Jacob Walls for the accurate and spot on review comments. Co-authored-by: Johannes Maron <johannes@maron.family> | |||
| 2026-02-25 | Fixed #36944 -- Removed MAX_LENGTH_HTML and related 5M chars limit ↵ | Natalia | |
| references from HTML truncation docs. | |||
| 2025-08-28 | Fixed #36570 -- Removed unnecessary :py domain from documentation roles. | SaJH | |
| Signed-off-by: SaJH <wogur981208@gmail.com> | |||
| 2025-08-25 | Refs #36485 -- Rewrapped docs to 79 columns line length. | David Smith | |
| Lines in the docs files were manually adjusted to conform to the 79 columns limit per line (plus newline), improving readability and consistency across the content. | |||
| 2025-08-25 | Refs #36485 -- Removed double spaces after periods in sentences. | Natalia | |
| 2025-08-14 | Fixed #36410 -- Added support for Template Partials to the Django Template ↵ | farhan | |
| Language. Introduced `{% partialdef %}` and `{% partial %}` template tags to define and render reusable named fragments within a template file. Partials can also be accessed using the `template_name#partial_name` syntax via `get_template()`, `render()`, `{% include %}`, and other template-loading tools. Adjusted `get_template()` behavior to support partial resolution, with appropriate error handling for invalid names and edge cases. Introduced `PartialTemplate` to encapsulate partial rendering behavior. Includes tests and internal refactors to support partial context binding, exception reporting, and tag validation. Co-authored-by: Carlton Gibson <carlton@noumenal.es> Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk> | |||
| 2025-06-27 | Fixed #15727 -- Added Content Security Policy (CSP) support. | Rob Hudson | |
| This initial work adds a pair of settings to configure specific CSP directives for enforcing or reporting policy violations, a new `django.middleware.csp.ContentSecurityPolicyMiddleware` to apply the appropriate headers to responses, and a context processor to support CSP nonces in templates for safely inlining assets. Relevant documentation has been added for the 6.0 release notes, security overview, a new how-to page, and a dedicated reference section. Thanks to the multiple reviewers for their precise and valuable feedback. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2025-04-15 | Fixed #36311 -- Unified spelling of "hardcode" and its variants in docs. | Ahmed Nassar | |
| Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2025-03-25 | Fixed #35529 -- Added support for positional arguments in querystring ↵ | Giannis Terzopoulos | |
| template tag. Co-authored-by: Natalia <124304+nessita@users.noreply.github.com> | |||
| 2025-03-24 | Fixed #36268 -- Added leading `?` in every querystring template tag result. | Natalia | |
| Thanks Sarah Boyce for the report. | |||
| 2025-03-24 | Improved and reorganized querystring template tag docstring and ref docs. | Natalia | |
| 2025-03-19 | Fixed #36000 -- Deprecated HTTP as the default protocol in urlize and ↵ | Ahmed Nassar | |
| urlizetrunc. | |||
| 2025-02-24 | Fixed #36186 -- Added forloop.length variable within a template for loop. | Jonathan Ströbele | |
| 2025-02-24 | Added security guideline on reasonable size limitations when rendering ↵ | Sarah Boyce | |
| content via the DTL. This also removes the need to add warnings for every Django template filter. | |||
| 2025-02-13 | Fixed #36182 -- Returned "?" if all parameters are removed in querystring ↵ | Sarah Boyce | |
| template tag. Thank you to David Feeley for the report and Natalia Bidart for the review. | |||
| 2025-01-15 | Removed versionadded/changed annotations for 5.1. | Sarah Boyce | |
| This also removes remaining versionadded/changed annotations for older versions. | |||
| 2024-10-22 | Added missing alt attribute to <img> tag in docs. | ssanger | |
| 2024-09-30 | Fixed #35797 -- Removed debug context processor from default project template. | Marc Gibbons | |
| 2024-09-03 | Fixed CVE-2024-45230 -- Mitigated potential DoS in urlize and urlizetrunc ↵ | Sarah Boyce | |
| template filters. Thanks MProgrammer (https://hackerone.com/mprogrammer) for the report. | |||
| 2024-07-23 | Updated example links in urlize docs. | Matthew Somerville | |
| goo.gl links are being removed in 2025: https://developers.googleblog.com/en/google-url-shortener-links-will-no-longer-be-available/ | |||
| 2024-07-22 | Refs #10941 -- Reorganized querystring template tag docs. | nessita | |
| 2024-07-15 | Refs #10941 -- Renamed query_string template tag to querystring. | Sarah Boyce | |
| 2024-06-20 | Fixed #35441 -- Documented Context and RequestContext keyword arguments. | John Higgins | |
| 2024-05-22 | Removed versionadded/changed annotations for 5.0. | Natalia | |
| This also removes remaining versionadded/changed annotations for older versions. | |||
| 2024-03-10 | Fixed #35280 -- Improved iriencode filter example in docs. | canhuynh1998 | |
| 2024-01-20 | Updated "Dive Into Python" links. | Emmanuel Katchy | |
| 2023-12-28 | Corrected code-block directives in docs. | Mariusz Felisiak | |
| 2023-10-26 | Fixed #10941 -- Added {% query_string %} template tag. | Tom Carrick | |
| 2023-10-25 | Added missing pycon directives in various docs. | Mariusz Felisiak | |
| 2023-10-04 | Fixed CVE-2023-43665 -- Mitigated potential DoS in ↵ | Natalia | |
| django.utils.text.Truncator when truncating HTML text. Thanks Wenchao Li of Alibaba Group for the report. | |||
| 2023-09-18 | Refs #33864 -- Removed length_is template filter per deprecation timeline. | Mariusz Felisiak | |
| 2023-09-18 | Removed versionadded/changed annotations for 4.2. | Mariusz Felisiak | |
| This also removes remaining versionadded/changed annotations for older versions. | |||
| 2023-07-03 | Fixed #33405, Refs #7177 -- Clarified docs for filter escapejs regarding ↵ | Jon Ribbens | |
| safe and unsafe usages. | |||
| 2023-05-31 | Fixed #34600 -- Removed references to bleach in docs. | Akash Kumar Sen | |
| 2023-05-26 | Refs #34574, Refs #34577 -- Mentioned escapeseq filter in escape/autoescape ↵ | Natalia | |
| docs. | |||
| 2023-05-26 | Fixed #34574 -- Noted unexpected outcomes in autoescape/escape docs. | Natalia | |
| 2023-05-22 | Fixed #34577 -- Added escapeseq template filter. | Arthur Moreira | |
| 2023-05-07 | Corrected code-block directive in docs/ref/templates/builtins.txt. | Pan Dango | |
| 2023-05-04 | Corrected code-block directives in docs. | Jannis Vajen | |
| 2023-03-01 | Fixed #34140 -- Reformatted code blocks in docs with blacken-docs. | django-bot | |
| 2023-02-28 | Refs #34140 -- Corrected rst code-block and various formatting issues in docs. | Joseph Victor Zammit | |
| 2023-02-10 | Refs #34140 -- Applied rst code-block to non-Python examples. | Carlton Gibson | |
| Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for reviews. | |||
| 2023-01-17 | Refs #32873 -- Removed settings.USE_L10N per deprecation timeline. | Mariusz Felisiak | |
| 2023-01-17 | Removed versionadded/changed annotations for 4.1. | Mariusz Felisiak | |
