diff options
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/http/middleware.txt | 14 | ||||
| -rw-r--r-- | docs/topics/i18n/localization.txt | 7 |
2 files changed, 11 insertions, 10 deletions
diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index be2a774c95..6b9ba1e76f 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -98,13 +98,13 @@ view; it'll return that :class:`~django.http.HttpResponse`. Response middleware is always called on every response. .. note:: - Accessing :attr:`request.POST <django.http.HttpRequest.POST>` or - :attr:`request.REQUEST <django.http.HttpRequest.REQUEST>` inside - middleware from ``process_request`` or ``process_view`` will prevent any - view running after the middleware from being able to - :ref:`modify the upload handlers for the - request <modifying_upload_handlers_on_the_fly>`, and should normally be - avoided. + + Accessing :attr:`request.POST <django.http.HttpRequest.POST>` or + :attr:`request.REQUEST <django.http.HttpRequest.REQUEST>` inside middleware + from ``process_request`` or ``process_view`` will prevent any view running + after the middleware from being able to :ref:`modify the upload handlers + for the request <modifying_upload_handlers_on_the_fly>`, and should + normally be avoided. The :class:`~django.middleware.csrf.CsrfViewMiddleware` class can be considered an exception, as it provides the diff --git a/docs/topics/i18n/localization.txt b/docs/topics/i18n/localization.txt index a24db8d463..3c50e3993b 100644 --- a/docs/topics/i18n/localization.txt +++ b/docs/topics/i18n/localization.txt @@ -260,9 +260,10 @@ Django's formatting system is disabled by default. To enable it, it's necessary to set :setting:`USE_L10N = True <USE_L10N>` in your settings file. .. note:: - The default :file:`settings.py` file created by - :djadmin:`django-admin.py startproject <startproject>` includes - :setting:`USE_L10N = True <USE_L10N>` for convenience. + + The default :file:`settings.py` file created by :djadmin:`django-admin.py + startproject <startproject>` includes :setting:`USE_L10N = True <USE_L10N>` + for convenience. When using Django's formatting system, dates and numbers on templates will be displayed using the format specified for the current locale. Two users |
