File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -182,14 +182,19 @@ def import_from_string(val, setting_name):
182
182
183
183
class APISettings :
184
184
"""
185
- A settings object, that allows API settings to be accessed as properties.
186
- For example:
185
+ A settings object that allows REST Framework settings to be accessed as
186
+ properties. For example:
187
187
188
188
from rest_framework.settings import api_settings
189
189
print(api_settings.DEFAULT_RENDERER_CLASSES)
190
190
191
191
Any setting with string import paths will be automatically resolved
192
192
and return the class, rather than the string literal.
193
+
194
+ Note:
195
+ This is an internal class that is only compatible with settings namespaced
196
+ under the REST_FRAMEWORK name. It is not intended to be used by 3rd-party
197
+ apps, and test helpers like `override_settings` may not work as expected.
193
198
"""
194
199
def __init__ (self , user_settings = None , defaults = None , import_strings = None ):
195
200
if user_settings :
You can’t perform that action at this time.
0 commit comments