Saturday, August 31, 2019

Re: Reverse for 'modification' with no arguments not found issue





The line with a problem is that one

    return render(request, 'insertion/modification.html', locals())


And I really can't figure it out why, according the fact that "locals()" contains my variable and even if I send directly my variable instead, I get the same !

There's probably a URL tag in that template that is missing a variable or has a typo in the variable reference. The error is complaining about a reverse call, not a render call. It might be in a different part of the traceback or error page. You need to look closer at the original error page, it probably cites something in the modification.html template, and you didn't post that one.

-James

--
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/CA%2Be%2BciXbr%3DtVaF5HredGqGK0LQ_9SiHuNKcv1%2Be0HFn1cX-zEQ%40mail.gmail.com.

No comments:

Post a Comment