mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
[5.1.x] Fixed example indentation in howto/overriding-templates.txt.
Backport of bcb91611eca154f022211633fe485e3e1a3c608d from main.
This commit is contained in:
parent
6eb6f236f2
commit
60dc9c288c
@ -111,15 +111,15 @@ reimplement the entire template.
|
|||||||
For example, you can use this technique to add a custom logo to the
|
For example, you can use this technique to add a custom logo to the
|
||||||
``admin/base_site.html`` template:
|
``admin/base_site.html`` template:
|
||||||
|
|
||||||
.. code-block:: html+django
|
.. code-block:: html+django
|
||||||
:caption: ``templates/admin/base_site.html``
|
:caption: ``templates/admin/base_site.html``
|
||||||
|
|
||||||
{% extends "admin/base_site.html" %}
|
{% extends "admin/base_site.html" %}
|
||||||
|
|
||||||
{% block branding %}
|
{% block branding %}
|
||||||
<img src="link/to/logo.png" alt="logo">
|
<img src="link/to/logo.png" alt="logo">
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
Key points to note:
|
Key points to note:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user