Z
Z
zkweb2015-09-26 17:00:24
Django
zkweb, 2015-09-26 17:00:24

Is it possible to add a view to the Django admin?

I'm new to Django and have questions.
How can I add a view to the admin interface? or is it stupid?
It's just the situation itself: I want to display a report in the admin panel, and I have it in a view with a plug-in template.
It turns out it will no longer be in the admin panel? Do I get it right?
How to add a model, I understood:

class ClientAdmin(admin.ModelAdmin):
    pass
admin.site.register(Clietn, ClientAdmin)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zelsky, 2015-09-26
@zelsky

form fields for the django admin itself, look towards list_display

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question