Answer the question
In order to leave comments, you need to log in
In which file is the content given to the template?
I'm changing the admin template:
I need to move this
Authentication and Authorization
.... block
to the left menu and that it stays there when going to any link.
The problem is that I can not find in which file where what is given. Maybe someone knows? (I use virtual env)
Answer the question
In order to leave comments, you need to log in
Well, specifically on this form, this is given in django/contrib/admin/templates/index.html
Specifically in this place:
...
{# тут пробегаемся по вашим приложениям и расставляем ссылки на админки #}
{% block content %}
<div id="content-main">
{% if app_list %}
{% for app in app_list %}
.....
{% endfor %}
{% else %}
<p>{% trans "You don't have permission to edit anything." %}</p>
{% endif %}
</div>
{% endblock %}
....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question