I am getting this error while I mention all syntax properly.plz help me out.

36 views
Skip to first unread message

Yash Lanjewar

unread,
Sep 12, 2020, 4:35:10 AM9/12/20
to django...@googlegroups.com
5.PNG
6.PNG
7.PNG
8.PNG
Message has been deleted

coolguy

unread,
Sep 12, 2020, 12:37:41 PM9/12/20
to Django users
Please provide the template screen shot since error is generated from there... also send separate screen so its viewable.  

amr

unread,
Sep 13, 2020, 7:44:15 PM9/13/20
to Django users
Change (href="{% url 'your_app_name:post_detail' post.id %}") ====== post.id not post.pk 
and change  (post=Post.objects.get(Post, pk=pk)) ======> TO  (post=Post.objects.get(pk=pk)  ...
And it will work with you

Reply all
Reply to author
Forward
0 new messages