mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #36329 -- Removed non-code custom link text when cross-referencing Python objects.
Thanks Bruno Alla, Sarah Boyce, and Jacob Walls for reviews. Co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
This commit is contained in:
@@ -195,7 +195,7 @@ filtered out of error reports in a production environment (that is, where
|
||||
.. function:: sensitive_post_parameters(*parameters)
|
||||
|
||||
If one of your views receives an :class:`~django.http.HttpRequest` object
|
||||
with :attr:`POST parameters<django.http.HttpRequest.POST>` susceptible to
|
||||
with :attr:`~django.http.HttpRequest.POST` parameters susceptible to
|
||||
contain sensitive information, you may prevent the values of those
|
||||
parameters from being included in the error reports using the
|
||||
``sensitive_post_parameters`` decorator::
|
||||
|
||||
@@ -186,9 +186,9 @@ root of the project.
|
||||
Configure a formatter
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
By default, the final log output contains the message part of each :class:`log
|
||||
record <logging.LogRecord>`. Use a formatter if you want to include additional
|
||||
data. First name and define your formatters - this example defines
|
||||
By default, the final log output contains the message part of each
|
||||
:class:`~logging.LogRecord` object. Use a formatter if you want to include
|
||||
additional data. First name and define your formatters - this example defines
|
||||
formatters named ``verbose`` and ``simple``:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
Reference in New Issue
Block a user