Sunday, September 13, 2020

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

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 yashlan...@gmail.com wrote:
5.PNG
6.PNG
7.PNG
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ec4f8530-c029-42c6-a304-3ca38a9da626n%40googlegroups.com.

No comments:

Post a Comment