Kaydet (Commit) 1f82b857 authored tarafından Md. Sadaf Noor's avatar Md. Sadaf Noor Kaydeden (comit) Tim Graham

Fixed #26831 -- Documented session data must be JSON encodable for JSONSerializer.

üst 08ed3cc6
......@@ -348,6 +348,9 @@ Bundled serializers
>>> request.session['0']
'bar'
Similarly, data that can't be encoded in JSON, such as non-UTF8 bytes like
``'\xd9'`` (which raises :exc:`UnicodeDecodeError`), can't be stored.
See the :ref:`custom-serializers` section for more details on limitations
of JSON serialization.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment