0
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
홈페이지에 "로그 아웃"및 "설정"버튼을 추가하는 방법을 알고 있습니다. 제가 site_base.html을 수정하겠습니까?Pinax 탐색 바에 버튼을 추가하는 방법, 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 %}
줄을 제거하면 작동하지 않습니다. {# 제거하면 맨 위 모음 #}이 (가) 삭제됩니다. https://github.com/pinax/pinax-project-account/blob/master/project_name/templates/_account_bar.html "로그 아웃"옵션이있는 것 같습니다. – danielfranca