diff options
| author | Tom Christie | 2013-02-23 17:12:40 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-02-23 17:12:45 +0000 |
| commit | 5432f9ba49186f74af568d195cc995a5e75bc046 (patch) | |
| tree | e39a6d93b98d9e3ed5d3183afa29c62ecb676375 | |
| parent | 8a0007133a458e43a6886cc1dfb9b52c77805caa (diff) | |
| download | django-rest-framework-5432f9ba49186f74af568d195cc995a5e75bc046.tar.bz2 | |
Fill in missing and incorrect settings.
| -rw-r--r-- | docs/api-guide/settings.md | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/docs/api-guide/settings.md b/docs/api-guide/settings.md index a422e5f6..e103fbab 100644 --- a/docs/api-guide/settings.md +++ b/docs/api-guide/settings.md @@ -43,7 +43,6 @@ Default: ( 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.BrowsableAPIRenderer', - 'rest_framework.renderers.TemplateHTMLRenderer' ) ## DEFAULT_PARSER_CLASSES @@ -54,7 +53,8 @@ Default: ( 'rest_framework.parsers.JSONParser', - 'rest_framework.parsers.FormParser' + 'rest_framework.parsers.FormParser', + 'rest_framework.parsers.MultiPartParser' ) ## DEFAULT_AUTHENTICATION_CLASSES @@ -84,15 +84,21 @@ A list or tuple of throttle classes, that determines the default set of throttle Default: `()` +## DEFAULT_CONTENT_NEGOTIATION_CLASS + +A content negotiation class, that determines how a renderer is selected for the response, given an incoming request. + +Default: `'rest_framework.negotiation.DefaultContentNegotiation'` + ## DEFAULT_MODEL_SERIALIZER_CLASS -**TODO** +A class that determines the default type of model serializer that should be used by a generic view if `model` is specified, but `serializer_class` is not provided. -Default: `rest_framework.serializers.ModelSerializer` +Default: `'rest_framework.serializers.ModelSerializer'` ## DEFAULT_PAGINATION_SERIALIZER_CLASS -**TODO** +A class the determines the default serialization style for paginated responses. Default: `rest_framework.pagination.PaginationSerializer` @@ -158,11 +164,13 @@ Default: `'accept'` ## URL_FORMAT_OVERRIDE +The name of a URL parameter that may be used to override the default `Accept` header based content negotiation. + Default: `'format'` ## FORMAT_SUFFIX_KWARG -**TODO** +The name of a parameter in the URL conf that may be used to provide a format suffix. Default: `'format'` |
