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

On Saturday, September 12, 2020 at 6:37:41 PM UTC+2 coolguy wrote:

> Please provide the template screen shot since error is generated from 
> there... also send separate screen so its viewable.  
>
> On Saturday, September 12, 2020 at 4:35:10 AM UTC-4 [email protected] 
> wrote:
>
>> [image: 5.PNG]
>> [image: 6.PNG]
>> [image: 7.PNG]
>> [image: 8.PNG]
>>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ec4f8530-c029-42c6-a304-3ca38a9da626n%40googlegroups.com.

Reply via email to