Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
5432f9ba
Commit
5432f9ba
authored
Feb 23, 2013
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fill in missing and incorrect settings.
parent
8a000713
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
docs/api-guide/settings.md
+14
-6
No files found.
docs/api-guide/settings.md
View file @
5432f9ba
...
@@ -43,7 +43,6 @@ Default:
...
@@ -43,7 +43,6 @@ Default:
(
(
'rest_framework.renderers.JSONRenderer',
'rest_framework.renderers.JSONRenderer',
'rest_framework.renderers.BrowsableAPIRenderer',
'rest_framework.renderers.BrowsableAPIRenderer',
'rest_framework.renderers.TemplateHTMLRenderer'
)
)
## DEFAULT_PARSER_CLASSES
## DEFAULT_PARSER_CLASSES
...
@@ -54,7 +53,8 @@ Default:
...
@@ -54,7 +53,8 @@ Default:
(
(
'rest_framework.parsers.JSONParser',
'rest_framework.parsers.JSONParser',
'rest_framework.parsers.FormParser'
'rest_framework.parsers.FormParser',
'rest_framework.parsers.MultiPartParser'
)
)
## DEFAULT_AUTHENTICATION_CLASSES
## DEFAULT_AUTHENTICATION_CLASSES
...
@@ -84,15 +84,21 @@ A list or tuple of throttle classes, that determines the default set of throttle
...
@@ -84,15 +84,21 @@ A list or tuple of throttle classes, that determines the default set of throttle
Default:
`()`
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
## 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
## DEFAULT_PAGINATION_SERIALIZER_CLASS
**TODO**
A class the determines the default serialization style for paginated responses.
Default:
`rest_framework.pagination.PaginationSerializer`
Default:
`rest_framework.pagination.PaginationSerializer`
...
@@ -158,11 +164,13 @@ Default: `'accept'`
...
@@ -158,11 +164,13 @@ Default: `'accept'`
## URL_FORMAT_OVERRIDE
## URL_FORMAT_OVERRIDE
The name of a URL parameter that may be used to override the default
`Accept`
header based content negotiation.
Default:
`'format'`
Default:
`'format'`
## FORMAT_SUFFIX_KWARG
## FORMAT_SUFFIX_KWARG
**TODO**
The name of a parameter in the URL conf that may be used to provide a format suffix.
Default:
`'format'`
Default:
`'format'`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment