У меня есть своя собственная HTML-страница "stat.html", на которой показаны некоторые графики. Это гиперссылка на пользовательскую индексную страницу, которую я создал с помощью этого метода answer3 .Моя текущая страница admin / custom_admin.html выглядит следующим образом
{% extends "admin/index.html" %}
{% block content %}
{{block.super}}
<div class="module">
<table style="width:100%">
<caption>
<a class="section">Statistics </a>
</caption>
<tbody>
<th scope="row">
<a href="/myapp/statpage" class="model">Stats Page</a>
</th>
</tbody>
</table>
</div>
{% endblock %}
Ссылка / myapp / statpage - это ссылка на статическую html-страницу, на ней показаны две диаграммы Google, что-то вроде
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stats</title>
<script src =
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<script type = "text/javascript" src =
"https://www.gstatic.com/charts/loader.js"> </script>
<script type = "text/javascript"> google.charts.load('current',
{packages: ['corechart']}); </script>
<script src="{% static "v_stats.js" %}"></script>
</head>
<body>
<div id="container" style="width:80%; height:35vw; margin:"auto";"></div>
<div id="container1" style="width:80%; height:35vw; margin:"auto";"></div>
</body>
</html>
Как мне просто наследовать заголовок администратора Django на этой странице stat.html и иметь свой собственный заголовок, некоторые ссылки на статические js-страницы и некоторое содержимое в нем?