diff --git a/api-guide/settings.html b/api-guide/settings.html index f61074c57..28c3b4066 100644 --- a/api-guide/settings.html +++ b/api-guide/settings.html @@ -127,6 +127,7 @@ margin-top: 5px;
from djangorestframework.settings import api_settings
+
+print api_settings.DEFAULT_AUTHENTICATION
+
+The api_settings
object will check for any user-defined settings, and otherwise fallback to the default values. Any setting that uses string import paths to refer to a class will automatically import and return the referenced class, instead of the string literal.
A list or tuple of renderer classes, that determines the default set of renderers that may be used when returning a Response
object.
Default:
@@ -178,17 +187,12 @@ margin-top: 5px;A list or tuple of authentication classes, that determines the default set of authenticators used when accessing the request.user
or request.auth
properties.
Default if DEBUG
is True
:
Default:
(
'djangorestframework.authentication.SessionAuthentication',
'djangorestframework.authentication.UserBasicAuthentication'
)
-Default if DEBUG
is False
:
(
- 'djangorestframework.authentication.SessionAuthentication',
-)
-
A list or tuple of permission classes, that determines the default set of permissions checked at the start of a view.
Default: ()
A list or tuple of throttle classes, that determines the default set of throttles checked at the start of a view.
Default: ()
TODO
Default: djangorestframework.serializers.ModelSerializer
TODO
Default: djangorestframework.pagination.PaginationSerializer
TODO
Default: 'format'
The class that should be used to initialize request.user
for unauthenticated requests.