django - Login from registration app failed in CSRF verification -


I'm trying to Django registration use, but I'm getting this error log:

  Forbidden (403) CSRF verification failed. Request revoked  

This is my form:

  & lt; Form action = "." Method = "post" class = "login_form" & gt; {% Csrf_token%} {{form.as_p}} & lt; P class = "presented" & gt; & Lt; Button class = "btn btn -lg btn-primary btn-block" type = "submit" name = "submit" value = "login" & gt; Lt and log in; / Button & gt; & Lt; / P & gt; {% If next%} & lt; Input type = "hidden" name = "next" value = "{{Next}}" & gt; {% Else%} & lt; Input type = "hidden" name = "next" value = "/" & gt; {% Endif%} & lt; / Form & gt;  

My settings:

  MIDDLEWARE_CLASSES = ( 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', ' Djngokmidilveyrkksrfkksrfviawmiddlevre 'Djngokcontribkotkmidilveyrkothentikashnmiddlevre' Djngokcontribkmessgeskmidilveyrkmessgemiddlevre 'Djngokmidilveyrkklikjakingkksframeopshansmiddlevre')   

Make sure that you are going back in terms of its visual

return render_to_response East ( ' Contact.html ', {' form ': form}, context_instance = RequestContext (request))


Comments