Answer the question
In order to leave comments, you need to log in
Limited number of posts for non-authorized users?
An unauthorized user can open the main page and only see the 10 most recent blog posts.
when authorized, it can naturally see all posts,
please tell me how it can be implemented in Django
, I already thought how to do it , it
can be done through filters in Html templates,
but I didn’t come up with
help pliz
Answer the question
In order to leave comments, you need to log in
Easily. You get in the view of the current user, if it is anonymous, then you make a slice of the queryset, if not, then you don't.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question