How to debug "Not all temporary messages can be saved" error in django?

I have a class based view that calls information () when a form is submitted successfully. After reading the document of the messaging framework and commenting on the information call, I am sure that its culprit is “Not all temporary messages can be saved”, an error.

I can not understand what happens after an information call that causes an error in the message header.

+4
source share
1 answer

It turns out that the number of messages stored in the cookie on the client side has been exceeded. When the server tried to pack additional cookies into the client's cookie, it failed and raised the error "Not all temporary messages can be saved."

I fixed this by making sure messages can be displayed in the browser by adding

{% block messages%}

to the basic website template.

+1
source

Source: https://habr.com/ru/post/1534938/


All Articles