Kaydet (Commit) 9e734875 authored tarafından Tim Graham's avatar Tim Graham Kaydeden (comit) GitHub

Fixed #24994 -- Documented the expected type of settings.SECRET_KEY.

üst b52c7300
......@@ -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::
......
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