In today's django This error occurs when using search on the web site of the framework :CSRF verification failed. Request In use today django The framework of the website When using the search function on the CSRF verification failed. Request aborted Error prompt for .
There is no problem with the local test of the station , But I can't open it on the server .
Experienced students should see csrf You can guess about this keyword , This is a django Used to prohibit external post A security protection mechanism submitted . I checked in the code , Sure enough, I was searching form There is no use of
{%csrf_token%}
stay form After the code is added in , Restart the server , The problem is solved perfectly .
Share it out , I hope that helps !