Answer the question
In order to leave comments, you need to log in
How to properly organize the api of an extensible application according to the django.contrib.admin type?
The task is essentially this - a basic application with a type template that displays data
<body>
<header>{%blok head%}SomeData{%endblok%}</header>
<div class="wrapper">
<aside>{%blok sidebar%}Somedata{%endblok%}</aside>
<div class="content">{%blok content%}SomeData{%endblok%}</div>
</div>
</body>
Answer the question
In order to leave comments, you need to log in
The question is not at all clear.
- First, block , not blok .
- Second, it's not at all necessary that you actually need to make classes for things like the header or the sidebar. Actually, there is no such thing in django.contrib.admin , as far as I remember. There are other classes there - AdminSite , ModelAdmin , TabularInline , StackedInline , ChangeList , etc.
- Thirdly, how are you going to "register" your classes somewhere else, and where?
You are overcomplicating.
https://github.com/sehmaschine/django-grappelli/bl... - registrar
https://github.com/sehmaschine/django-grappelli/bl... - the base class
is that application 1 registers its items in the sidebar, css in the header, etc. Appendix 2 - own points, and when you enter, all srau should be displayed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question