Explain default value for ecretValue()

This commit is contained in:
Harry Moreno 2019-01-24 15:41:33 -05:00 committed by GitHub
parent 2db80d8c34
commit f887ad5821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -561,7 +561,8 @@ Other values
A :class:`~Value` subclass that doesn't allow setting a default value
during instantiation and force-enables the use of an environment variable
to reduce the risk of accidentally storing secret values in the settings
file.
file. This usually resolves to ``DJANGO_SECRET_KEY`` unless you have
customized the environment variable names.
:raises: ``ValueError`` when given a default value