Html 在Django管理页面中向页脚添加文本

Html 在Django管理页面中向页脚添加文本,html,css,django,Html,Css,Django,我正在尝试将自动生成的django管理页面定制为更个性化的页面。我想在页脚中添加文本,但到目前为止,我尝试的一切都没有成功。这是html。这里的尝试将在内容后面显示页脚文本,而不显示css创建的页脚栏。以下是html: {% extends "admin/base.html" %} {% load i18n %} {% block title %}{{ title }} | {% trans 'Sunstreet Administration' %}{% endblock %} {% blo

我正在尝试将自动生成的django管理页面定制为更个性化的页面。我想在页脚中添加文本,但到目前为止,我尝试的一切都没有成功。这是html。这里的尝试将在内容后面显示页脚文本,而不显示css创建的页脚栏。以下是html:

{% extends "admin/base.html" %}
{% load i18n %}

{% block title %}{{ title }} | {% trans 'Sunstreet Administration' %}{% endblock %}

{% block extrastyle %}

<!-- <head>
    <link rel="stylesheet" href="headerfooter.css" type="text/css"/>
</head> -->

<style>


#header{ width:100%;
background-color: 
#DF4F44;
border-bottom: solid 3px #999;
display: block;
background-image:url("/img/sunstreet.png") no-repeat right top; }



#branding h1{ color: #fff; }
.module h2, .module caption, .inline-group h2 { background:#ccc url(/img/admin/nav-bg.gif) bottom          left repeat-x; color: #333940; }
a.section:link, a.section:visited { color: #9CA974; }


#footer h5{ position:fixed; bottom:0;
width: 100%; height:5px; background-color: #DF4F44; 
border-bottom: solid 3px #999;
}


</style>

<!-- <footer class="footer">

    <div class="copyright">
        Copyright &copy; 2014 LOL. All rights reserved
    </div>
</footer> -->

{% endblock %}
{% block branding %}
<h1 id="site-name">{% trans 'Database' %}</h1>

{% endblock %}



{% block nav-global %}

{% endblock %}

{% block footer %}
<h5> 'Text in footer'  </h5>
{% endblock %}
{%extends“admin/base.html”%}
{%load i18n%}
{%block title%}{{title}}{%trans'Sunstreet管理“}{%endblock%}
{%block extrastyle%}
#标题{宽度:100%;
背景色:
#DF4F44;
边框底部:实心3px#999;
显示:块;
背景图像:url(“/img/sunstreet.png”)不重复右上方;}
#品牌h1{color:#fff;}
.module h2、.module caption、.inline group h2{background:#ccc url(/img/admin/nav bg.gif)左下角repeat-x;颜色:#333940;}
a、 部分:链接,a。部分:已访问{颜色:#9CA974;}
#页脚h5{位置:固定;底部:0;
宽度:100%;高度:5px;背景色:#DF4F44;
边框底部:实心3px#999;
}
{%endblock%}
{%block-branding%}
{%trans'数据库“%”
{%endblock%}
{%block nav global%}
{%endblock%}
{%block footer%}
“页脚中的文本”
{%endblock%}
您可以尝试: 从


致:

{%load staticfiles%}

将headerfooter.css放在static/headerfooter.css文件夹中

您将此模板放在了哪里?
<!-- <head>
<link rel="stylesheet" href="headerfooter.css" type="text/css"/>
</head> -->
{% load staticfiles %}
<!-- <head>
<link rel="stylesheet" type="text/css" href= " {% static "headerfooter.css" %}" />
</head> -->