class documentation

class APISettings: (source)

View In Hierarchy

A settings object that allows REST Framework settings to be accessed as properties. For example: from rest_framework.settings import api_settings print(api_settings.DEFAULT_RENDERER_CLASSES) Any setting with string import paths will be automatically resolved and return the class, rather than the string literal. Note: This is an internal class that is only compatible with settings namespaced under the REST_FRAMEWORK name. It is not intended to be used by 3rd-party apps, and test helpers like `override_settings` may not work as expected.

Method __getattr__ Undocumented
Method __init__ Undocumented
Method reload Undocumented
Instance Variable defaults Undocumented
Instance Variable import_strings Undocumented
Property user_settings Undocumented
Method __check_user_settings Undocumented
Instance Variable _cached_attrs Undocumented
Instance Variable _user_settings Undocumented
def __getattr__(self, attr): (source)

Undocumented

def __init__(self, user_settings=None, defaults=None, import_strings=None): (source)

Undocumented

def reload(self): (source)

Undocumented

defaults = (source)

Undocumented

import_strings = (source)

Undocumented

@property
user_settings = (source)

Undocumented

def __check_user_settings(self, user_settings): (source)

Undocumented

_cached_attrs = (source)

Undocumented

_user_settings = (source)

Undocumented