module documentation
Settings for REST framework are all namespaced in the REST_FRAMEWORK setting. For example your project's `settings.py` file might look like this: REST_FRAMEWORK = { 'DEFAULT_RENDERER_CLASSES': [ 'rest_framework.renderers.JSONRenderer', 'rest_framework.renderers.TemplateHTMLRenderer', ], 'DEFAULT_PARSER_CLASSES': [ 'rest_framework.parsers.JSONParser', 'rest_framework.parsers.FormParser', 'rest_framework.parsers.MultiPartParser', ], } This module provides the `api_setting` object, that is used to access REST framework settings, checking for user settings first, then falling back to the defaults.
Class |
|
A settings object that allows REST Framework settings to be accessed as properties. For example: |
Function | import |
Attempt to import a class from a string representation. |
Function | perform |
If the given setting is a string import notation, then perform the necessary import or imports. |
Function | reload |
Undocumented |
Constant | DEFAULTS |
Undocumented |
Constant | IMPORT |
Undocumented |
Constant | REMOVED |
Undocumented |
Variable | api |
Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|