A
A
Alex Xmel2022-03-14 13:17:34
Django
Alex Xmel, 2022-03-14 13:17:34

What are the differences in the display of the admin panel depending on the OS?

Good afternoon comrades.

I accidentally ran into one moment, which probably always existed, but noticed only now and the search did not give an answer.

I'm changing my admin. To do this, I made the following folder structure in the application:
- Application - templates - admin - application name - model name - change_list.html

{% extends "admin/change_list.html" %}
{% load admin_list i18n admin_urls %}

{% block object-tools %}
    <form action="import/" method="post">
        {% csrf_token %}
        <input type="submit" name="zip" value="Загрузить начальные данные"/>
    </form>
    {{ block.super }}
{% endblock %}


that is, now when I go to the admin panel in this model, a button with the inscription Load data is shown on top of me. So. If I run the dev server on win and go to the admin panel, then there is a button, but the same thing under ubuntu - it is not there. What could be the difference?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-03-14
@bacon

first, check the project settings again, then the access rights and file name case

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question