On Thursday, 19 November 2015 19:04:05 UTC, Bob Aalsma wrote: > > Really sorry Tom, I've been looking at your text and thinking about it for > most of today, but no penny dropping. > I'm rather unsure which bits go where, I'm trying to understand this by > rebuilding the tutorial. > > I can't seem to get my head around this 'reverse()' part: the reverse() as > such is used in the HttpResponseRedirect statement whereas the error seems > to be caused by the form statement in vraag.html - how do these things > connect? >
Tom is mistaken, you *did* pass an argument in your url tag: `{% url 'zoekopdrachten:resultaat' vraag.zoekvraag_id %}`. However, as the error message says, the argument that you passed is being interpreted as the empty string, which doesn't match the url pattern. You haven't posted your models, but I suspect that the reason for this is that there is no such attribute as `zoekvraag_id` on your Vraag model, so `vraag.zoekvraag_id` doesn't return a value. I think you probably meant `vraag.id`. -- DR. -- 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 http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a450c700-e7ac-4732-bba6-9363991f8e24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.