Pinax如何将按钮添加到导航栏,site_base.html



I m using django and pinax the first .I started a new pinax project but found there was no navigation bar on the homepage.Then I add django-user-accounts to the project ,but don不知道如何在主页上添加"注销"one_answers"设置"按钮。我应该修改site_base.html吗?如何修改?

这是site_base.html

{% extends "theme_base.html" %}
{% load staticfiles %}
{% load i18n %}
{# remove to bring back topbar #}
{% block topbar_base %}{% endblock %}
{% block style_base %}
    <link href="{% static "pinax/css/theme.css" %}" rel="stylesheet">
    <link href="{% static "css/site.css" %}" rel="stylesheet">
    {% block extra_style %}{% endblock %}
{% endblock %}
{% block extra_head_base %}
{% block extra_head %}{% endblock %}
{% endblock %}
{% block footer %}
    {% include "_footer.html" %}
{% endblock %}
{% block extra_body_base %}
    {% block extra_body %}{% endblock %}
{% endblock %}
{% block script_base %}
    <script src="{% block jquery_src %}{% static "pinax/js/jquery.js" %}{% endblock %}"></script>
    <script src="{% static "js/bootstrap.min.js" %}"></script>
    <script src="{% static "pinax/js/theme.js" %}"></script>
    {% block extra_script %}{% endblock %}
{% endblock %}

删除此

{# remove to bring back topbar #}
{% block topbar_base %}{% endblock %}

你的导航栏会回来的。现在你也添加了一个导航栏。

相关内容

  • 没有找到相关文章

最新更新