Re: CSRF verification failed, 'CSRF token missing or incorrect'

2020-08-10 Thread Shaurya Pratap Singh
> > It should be like this-> > {% csrf_token %} {{ form.as_p }} {% for field, errors in form.errors.items %} {{ errors }} {% endfor %} -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: CSRF verification failed, 'CSRF token missing or incorrect'

2020-06-28 Thread maninder singh Kumar
You need to pass RequestContext in render_to_response for csrf_token Maninder Kumar about.me/maninder.s.kumar

Re: CSRF verification failed, 'CSRF token missing or incorrect'

2020-06-28 Thread Akinfolarin Stephen
can i see the error log On Mon, Jun 29, 2020 at 7:06 AM Shinster wrote: > When I try to submit a Django form with username and password, I get this > error message: > 'CSRF token missing or incorrect'. > > The CSRF token is not missing at least. > Here is where I included it in my form in my .h

CSRF verification failed, 'CSRF token missing or incorrect'

2020-06-28 Thread Shinster
When I try to submit a Django form with username and password, I get this error message: 'CSRF token missing or incorrect'. The CSRF token is not missing at least. Here is where I included it in my form in my .html template: In **index.html:** {% csrf_token %} {{ form.as_p }}