-5

I have built a simple blog app with Django and I have had some issue with NoReverseMatch.

Here are my problem screenshots:

  1. https://prnt.sc/imqx70

  2. https://prnt.sc/imqwpt

Here is my code on Github: https://github.com/nafiulhasanbd/Django_blog_app

How can I fix the error?

1 Answers1

0

In your views.py line 77 change

return redirect('post_detail', pk=post.pk)  

to

return redirect(PostDetailView, pk=post.pk)