mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.10.x] Fixed #24994 -- Documented the expected type of settings.SECRET_KEY.
Backport of 9e734875fe7fb078aa4ef0e84578aa7e641f5563 from master
This commit is contained in:
parent
f38f2032c5
commit
3e1be301e2
@ -1988,6 +1988,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…
x
Reference in New Issue
Block a user