Variable name in the context of CategoryListView is cat_menu_list.
I did not see that variable name in the template. In the template you are
iterating over a variable that doesnt exist in the context.

Iterate over cat_menu_list in the template and it should work fine!


Regards,
Chetan Ganji
+91-900-483-4183
ganji.che...@gmail.com
http://ryucoder.in


On Fri, May 26, 2023 at 2:13 AM Ifeanyi Okoli <fny...@gmail.com> wrote:

> Hello,
>
> Please I am building a simple blog, and the video I am referencing used a
> function view for the category view but is not working for me. I am unable
> to see the list of posts based on categories.
>
> Every other thing works except the category view. It shows me   "Sorry,
> this category does not exist yet..."  which indicates that it is not
> reading or seeing the list of posts.
>
> I have tried using class view but is also not working.
>
> Please see screenshots of my code in the attached file.
>
> Kindly assist.
>
> Thanks.
>
> Ifeanyi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/47b10a5c-6252-4ee7-9b18-3b9ecd2bfa75n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/47b10a5c-6252-4ee7-9b18-3b9ecd2bfa75n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMKMUjvGUtmr6HK0BMehdKxf2e6ixwDXngfSzMXCGRaz3-%3D4ig%40mail.gmail.com.

Reply via email to