Radical use of the admin interface

It was interesting to me....

Is it possible in Django to create an admin page that is completely independent of the model or even the application?

I was thinking of something like a control panel or a control interface that only collects data from other models but does not have it.

If yes, then any further link or link?

thank

+3
source share
4 answers

That's quite possible. You can do this using regular views, and then create templates that extend the template "admin / base_site.html" as follows:

{% extends "admin/base_site.html" %}

You can also do breading cramps as follows:

{% block breadcrumbs %}{% if not is_popup %}
    <div class="breadcrumbs">
         <a href="/admin/">Home</a> &rsaquo;
         <a href="/admin/yourpath/">Up One Level</a> &rsaquo; 
         You Are Here
    </div>
{% endif %}{% endblock %}

And then place the content you want inside the "content" block.

+2

, , . , Django , (.. Django , urls.py, Django).

, , , , , (, login_required permission_required).

+3

django-admin-tools . .

There is also another application ( nexus ) with similar goals. I have not tried this myself, but it also looks good.

+2
source

Nexus seems right. I use it myself and am very helpful. Compared to kow, there aren't a lot of moudles availale, only two, I think. This was done by the Disqus guys.

Link: Nexus

Going to add documentation on how to add your own modules.

Hope this helps.

+1
source

Source: https://habr.com/ru/post/1791620/


All Articles