Задать вопрос

Тел: +7 965 3737 888

425

Просмотров

0

Ответов

Template loader to target a specific template

<p>This is http://djangosnippets.org/snippets/1376/ rewritten as a new class-style Loader, and slightly improved.</p>
<p>Allows you to reference templates like this:</p>
 app_label:some/template/name.html

<p>This makes it possible to insert customizations at any point in a template hierarchy. For example, you could replace a block within the base admin template:</p>
 {% extends "admin:admin/base.html" %}

 {% block breadcrumbs %}Custom Breadcrumbs-Style{% endblock %}

Вопрос полезен? Да0/Нет0
file_5074.py(2.4Кб)
None