Fixed #24994 -- Documented the expected type of settings.SECRET_KEY.
This commit is contained in:
parent
b52c73008a
commit
9e734875fe
|
@ -2048,6 +2048,10 @@ unpredictable value.
|
|||
:djadmin:`django-admin startproject <startproject>` automatically adds a
|
||||
randomly-generated ``SECRET_KEY`` to each new project.
|
||||
|
||||
Uses of the key shouldn't assume that it's text or bytes. Every use should go
|
||||
through :func:`~django.utils.encoding.force_text` or
|
||||
:func:`~django.utils.encoding.force_bytes` to convert it to the desired type.
|
||||
|
||||
Django will refuse to start if :setting:`SECRET_KEY` is not set.
|
||||
|
||||
.. warning::
|
||||
|
|
Loading…
Reference in New Issue