try renaming path('post/<int:pk>/comment/', views.add_comment, name= 'add-comment'),
to path('post/<int:slug>/comment/', views.add_comment, name='add-comment'), On Fri, 12 Oct 2018 at 12:36, Robert CR <robertlls4...@gmail.com> wrote: > i fixed the error, thanks. But there is already a new one when i try to > add a comment. D: > > [image: Udklip.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+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/87fc38dd-6dac-4cb2-a6f5-81056728d65f%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/87fc38dd-6dac-4cb2-a6f5-81056728d65f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHfehoUaXDar9DTuDOYtBtwXXi8WFY8j6i-pcXfRojP7q_93_g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.