mirror of
https://github.com/django/django.git
synced 2025-08-01 17:42:56 +00:00
[5.1.x] Used :pypi: role in docs where appropriate.
Backport of 304d256674
from main.
This commit is contained in:
parent
88ebcb1856
commit
20bd3f02be
10 changed files with 25 additions and 35 deletions
|
@ -154,7 +154,8 @@ Origin API and 3rd-party integration
|
|||
Django templates have an :class:`~django.template.base.Origin` object available
|
||||
through the ``template.origin`` attribute. This enables debug information to be
|
||||
displayed in the :ref:`template postmortem <template-postmortem>`, as well as
|
||||
in 3rd-party libraries, like the `Django Debug Toolbar`_.
|
||||
in 3rd-party libraries, like the :pypi:`Django Debug Toolbar
|
||||
<django-debug-toolbar>`.
|
||||
|
||||
Custom engines can provide their own ``template.origin`` information by
|
||||
creating an object that specifies the following attributes:
|
||||
|
@ -168,4 +169,3 @@ creating an object that specifies the following attributes:
|
|||
to load the template, e.g. ``django.template.loaders.filesystem.Loader``.
|
||||
|
||||
.. _DEP 182: https://github.com/django/deps/blob/main/final/0182-multiple-template-engines.rst
|
||||
.. _Django Debug Toolbar: https://github.com/jazzband/django-debug-toolbar/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue