Re: NoReverseMatch error message - Please help

2020-03-31 Thread victor awakan
Sometimes the error can be from your url.py or even views.py and also make sure no typo. Check each on e of the above carefully. Hopefully you might see the bug. Cheers On Tue 31. Mar 2020 at 18.06, Jeff Waters wrote: > Thanks Ryan. > > I've just tried that, but I still get an error message. >

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Jeff Waters
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. Inc

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Ryan Nowakowski
Based on the rest of your template from the github link, looks like: {% url 'nowandthen:add_comment' image.id %} ...should instead be: {% url 'nowandthen:add_comment' p.image.id %} On 3/31/20 7:08 AM, Jeff Waters wrote: I am putting together a website which has a photo gallery where users can

Re: NoReverseMatch error message - Please help

2020-03-31 Thread Kasper Laudrup
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