Tuesday, March 31, 2020

Re: NoReverseMatch error message - Please help

Hi Jeff,

On 31/03/2020 14.08, Jeff Waters wrote:
> I am putting together a website which has a photo gallery where users can add comments. When I go to the photo gallery page, I get the following error message:
>
> NoReverseMatch at /photo_feed/ Reverse for 'add_comment' with arguments '('',)' not found. 1 pattern(s) tried: ['add_comment/$']
>

Trailing slashes are part of the path, so "/foobar/" is not the same as
"/foobar".

Hopefully that should give you a hint to what is most likely the cause
of your problem.

Kind regards,

Kasper Laudrup

--
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/860f1f56-b008-f38b-3b01-8ff985f5d88f%40stacktrace.dk.

No comments:

Post a Comment