R
R
Ribachok2021-08-08 14:22:41
Django
Ribachok, 2021-08-08 14:22:41

How to display information about an object on a list page?

There is a model and there is a page where I display it with this:

class showBooks(ListView):
    model = Book
    template_name = 'main.html'
    context_object_name = 'book'

and I need to be able to display information on the same page only about the book that I clicked on. How?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikita Mokhovikov, 2021-08-08
@mohovoy

Look in the documentation

A
alternativshik, 2021-08-09
@alternativshik

When will you learn to read the documentation and look at examples first, and then ask questions ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question