How To Fix Django "noreversematch" Error
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
Solution 1:
In your views.py line 77 change
return redirect('post_detail', pk=post.pk)
to
return redirect(PostDetailView, pk=post.pk)
Post a Comment for "How To Fix Django "noreversematch" Error"