On Sat, Feb 20, 2016 at 11:50 PM, Xristos Xristoou <saxr...@gmail.com> wrote:
> place csrf on my code > > > <form action="" method="POST">{% csrf_token %} > Number of number: <input type="text" name="nums" value="Number"> > Enter a value: <input type="text" name="total_inputs" value="Total value"> > <button type="submit" value="Submit"> > </form> > > > and the background color from input is a differend and i take that message > > This inspection highlights form elements without required associated label > (WCAG 2.0: H44 <http://www.w3.org/TR/WCAG20-TECHS/html.html#H44>) or > title attribute (WCAG 2.0: H65 > <http://www.w3.org/TR/2015/NOTE-WCAG20-TECHS-20150226/H65>) and provides > the ability to create a new label or add an attribute. > > > I'm assuming that last line is something from your editor. Your CSRF token appears to be in the right spot. The only other note I would have without other information is that your first form input is named "nums", but your view is looking for "num". -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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWbBzrgtXJAWWVzhBdiZbCNms6%3DeuOkAguFwTFg_o_mdQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.