I have built a simple blog app with Django and I have had some issue with NoReverseMatch.
Here are my problem screenshots:
https://prnt.sc/imqx70
https://prnt.sc/imqwpt
Here is my code on Github: https://github.com/nafiulhasanbd/Django_blog_app
How can I fix the error?
In your views.py line 77 change
return redirect('post_detail', pk=post.pk)
to
return redirect(PostDetailView, pk=post.pk)
2.1m questions
2.1m answers
60 comments
57.0k users