Tuesday, March 31, 2020

Re: NoReverseMatch error message - Please help

Thanks Ryan.

I've just tried that, but I still get an error message.

By the way, is it definitely .id and not _id? I've seen both, and Django docs says: 'Behind the scenes, Django appends "_id" to the field name to create its database column name, which makes me wonder if it might be _id.

Incidentally, I've also tried amending the relevant URL path to path('add_comment/<int:p.image_id>', views.add_comment, name='add_comment') - with underscore and with a dot before the id - but that doesn't work.

Jeff



--
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/4473f031-abfa-428a-8804-debaf5a41c93%40googlegroups.com.

No comments:

Post a Comment