Skip to content

Commit

Permalink
Fixed #24994 -- Documented the expected type of settings.SECRET_KEY.
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Dec 28, 2016
1 parent b52c730 commit 9e73487
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/ref/settings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit 9e73487

Please sign in to comment.