mirror of https://github.com/django/django.git
Fixed a few PEP8 errors in settings doc.
This commit is contained in:
parent
6d302f6396
commit
2c1384fbac
|
@ -1241,7 +1241,7 @@ FILE_UPLOAD_HANDLERS
|
|||
Default::
|
||||
|
||||
("django.core.files.uploadhandler.MemoryFileUploadHandler",
|
||||
"django.core.files.uploadhandler.TemporaryFileUploadHandler",)
|
||||
"django.core.files.uploadhandler.TemporaryFileUploadHandler")
|
||||
|
||||
A tuple of handlers to use for uploading. See :doc:`/topics/files` for details.
|
||||
|
||||
|
@ -1622,7 +1622,7 @@ Example::
|
|||
|
||||
LOCALE_PATHS = (
|
||||
'/home/www/project/common_files/locale',
|
||||
'/var/local/translations/locale'
|
||||
'/var/local/translations/locale',
|
||||
)
|
||||
|
||||
Django will look within each of these paths for the ``<locale_code>/LC_MESSAGES``
|
||||
|
@ -1739,7 +1739,7 @@ MIDDLEWARE_CLASSES
|
|||
Default::
|
||||
|
||||
('django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',)
|
||||
'django.middleware.csrf.CsrfViewMiddleware')
|
||||
|
||||
A tuple of middleware classes to use. See :doc:`/topics/http/middleware`.
|
||||
|
||||
|
@ -2452,7 +2452,7 @@ Default::
|
|||
'django.contrib.auth.hashers.SHA1PasswordHasher',
|
||||
'django.contrib.auth.hashers.MD5PasswordHasher',
|
||||
'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
|
||||
'django.contrib.auth.hashers.CryptPasswordHasher',)
|
||||
'django.contrib.auth.hashers.CryptPasswordHasher')
|
||||
|
||||
.. _settings-messages:
|
||||
|
||||
|
@ -2516,7 +2516,7 @@ Default::
|
|||
messages.INFO: 'info',
|
||||
messages.SUCCESS: 'success',
|
||||
messages.WARNING: 'warning',
|
||||
messages.ERROR: 'error',}
|
||||
messages.ERROR: 'error'}
|
||||
|
||||
This sets the mapping of message level to message tag, which is typically
|
||||
rendered as a CSS class in HTML. If you specify a value, it will extend
|
||||
|
|
Loading…
Reference in New Issue