#32324: Adding more blocks to the contrib.admin site
-------------------------------------+-------------------------------------
Reporter: Muskan | Owner: nobody
Vaswan |
Type: | Status: new
Cleanup/optimization |
Component: | Version: 3.1
contrib.admin |
Severity: Normal | Keywords: admin customize
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 1 |
-------------------------------------+-------------------------------------
The Django admin template can be overridden and extended by the user.
However, flexibility to customize the admin page can be increased by
putting larger chunks of code inside a `{% block ... %}... {% endblock
%}`. This will be useful as it will allow the user to completely rewrite
an entire segment of the page without having to override smaller elements
or the entire template.
For example, the user can overwrite the entire navbar if the header was
put inside `{% block header %}` simply by extending the template.
Refer to this conversation [https://groups.google.com/g/django-
developers/c/Q8I-0-2Sn4M] (point 2) for the full discussion
--
Ticket URL: <https://code.djangoproject.com/ticket/32324>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.dd6318d5324306dc609874a7e301c0fb%40djangoproject.com.