django/docs/topics
farhan 5e06b97095
Some checks failed
Linters / flake8 (push) Waiting to run
Linters / isort (push) Waiting to run
Linters / black (push) Waiting to run
Tests / Windows, SQLite, Python 3.13 (push) Waiting to run
Tests / JavaScript tests (push) Waiting to run
Docs / spelling (push) Has been cancelled
Docs / blacken-docs (push) Has been cancelled
Fixed #36410 -- Added support for Template Partials to the Django Template 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-08-14 21:53:14 -03:00
..
auth Removed versionadded/changed annotations for 5.1. 2025-01-15 22:28:37 +01:00
class-based-views Corrected code examples in topics docs. 2025-08-11 10:12:43 +02:00
db Corrected jsonfield fieldlookup references. 2025-06-13 09:50:56 +02:00
forms Fixed incorrect formatting for inline pluralized code references in docs. 2025-03-13 15:18:35 -03:00
http Fixed #36311 -- Unified spelling of "hardcode" and its variants in docs. 2025-04-15 14:48:55 -03:00
i18n Fixed #35993 -- Documented gettext f-string support limitations. 2025-04-15 10:02:25 +02:00
testing Corrected assertNumQueries() example in docs/topics/testing/tools.txt. 2025-08-04 15:07:48 +02:00
async.txt Fixed #33497 -- Doc'd that persistent DB connections should be disabled in ASGI and async modes. 2025-03-18 21:26:57 -03:00
cache.txt Fixed #36311 -- Unified spelling of "hardcode" and its variants in docs. 2025-04-15 14:48:55 -03:00
checks.txt Fixed #35358, Refs #35234 -- Renamed _check() methods to check() for constraints. 2025-02-19 20:27:30 +01:00
composite-primary-key.txt Refs #373 -- Doc'd that on_delete is ignored for ForeignObject. 2025-06-10 09:44:40 +02:00
conditional-view-processing.txt Applied Black's 2024 stable style. 2024-01-26 12:45:07 +01:00
email.txt Fixed #35581 -- Updated django.core.mail to Python's modern email API. 2025-07-25 13:50:02 +02:00
external-packages.txt Used extlinks for PyPI links. 2023-04-17 06:55:32 +02:00
files.txt Corrected code examples in topics docs. 2025-08-11 10:12:43 +02:00
index.txt Fixed #373 -- Added CompositePrimaryKey. 2024-11-29 11:23:04 +01:00
install.txt Relocated database setup details to install docs to simplify tutorial 2. 2024-07-04 15:30:52 -03:00
logging.txt Fixed #34140 -- Reformatted code blocks in docs with blacken-docs. 2023-03-01 13:03:56 +01:00
migrations.txt Made minor grammar and punctuation fixes in docs/topics/migrations.txt. 2025-06-11 12:52:26 -03:00
pagination.txt Corrected code examples in topics docs. 2025-08-11 10:12:43 +02:00
performance.txt Fixed incorrect formatting for inline pluralized code references in docs. 2025-03-13 15:18:35 -03:00
security.txt Fixed #15727 -- Added Content Security Policy (CSP) support. 2025-06-27 15:57:02 -03:00
serialization.txt Fixed #29522 -- Refactored the Deserializer functions to classes. 2024-09-17 11:00:49 +02:00
settings.txt Updated "Dive Into Python" links. 2024-01-20 19:43:55 +01:00
signals.txt Fixed typo in docs/topics/signals.txt. 2025-03-23 20:02:42 +01:00
signing.txt Updated sign() outputs in Cryptographic signing docs. 2024-09-25 19:52:18 +02:00
templates.txt Fixed #36410 -- Added support for Template Partials to the Django Template Language. 2025-08-14 21:53:14 -03:00