Removed usage of to-be-deprecated ADMIN_FOR setting in contributing docs
This commit is contained in:
parent
e1cfc4b96a
commit
bed52afee7
|
@ -263,23 +263,26 @@ example:
|
||||||
|
|
||||||
.. code-block:: rst
|
.. code-block:: rst
|
||||||
|
|
||||||
.. setting:: ADMIN_FOR
|
.. setting:: ADMINS
|
||||||
|
|
||||||
ADMIN_FOR
|
ADMINS
|
||||||
---------
|
------
|
||||||
|
|
||||||
Default: ``()`` (Empty tuple)
|
Default: ``()`` (Empty tuple)
|
||||||
|
|
||||||
Used for admin-site settings modules, this should be a tuple of
|
A tuple that lists people who get code error notifications. When
|
||||||
settings modules (in the format ``'foo.bar.baz'``) for which this site
|
``DEBUG=False`` and a view raises an exception, Django will email these people
|
||||||
is an admin.
|
with the full exception information. Each member of the tuple should be a tuple
|
||||||
|
of (Full name, email address). Example::
|
||||||
|
|
||||||
The admin site uses this in its automatically-introspected
|
(('John', 'john@example.com'), ('Mary', 'mary@example.com'))
|
||||||
documentation of models, views and template tags.
|
|
||||||
|
Note that Django will email *all* of these people whenever an error happens.
|
||||||
|
See :doc:`/howto/error-reporting` for more information.
|
||||||
|
|
||||||
This marks up the following header as the "canonical" target for the
|
This marks up the following header as the "canonical" target for the
|
||||||
setting ``ADMIN_FOR`` This means any time I talk about ``ADMIN_FOR``,
|
setting ``ADMINS``. This means any time I talk about ``ADMINS``,
|
||||||
I can reference it using ``:setting:`ADMIN_FOR```.
|
I can reference it using ``:setting:`ADMINS```.
|
||||||
|
|
||||||
That's basically how everything fits together.
|
That's basically how everything fits together.
|
||||||
|
|
||||||
|
@ -320,8 +323,8 @@ look better:
|
||||||
|
|
||||||
__ http://sphinx-doc.org/markup/desc.html#info-field-lists
|
__ http://sphinx-doc.org/markup/desc.html#info-field-lists
|
||||||
|
|
||||||
* Whenever possible, use links. So, use ``:setting:`ADMIN_FOR``` instead
|
* Whenever possible, use links. So, use ``:setting:`ADMINS``` instead
|
||||||
of ````ADMIN_FOR````.
|
of ````ADMINS````.
|
||||||
|
|
||||||
* Use directives where appropriate. Some directives
|
* Use directives where appropriate. Some directives
|
||||||
(e.g. ``.. setting::``) are prefix-style directives; they go *before*
|
(e.g. ``.. setting::``) are prefix-style directives; they go *before*
|
||||||
|
|
Loading…
Reference in New Issue