settings.py
This is the default setting of django_query_capture. You can adjust the threshold or change the shape of the output by referring to settings.
get_config()
¤
Utilities that help you use the default settings if you don't use the user
Returns:
Type | Description |
---|---|
Dict[str, Any] |
Among the values of settings, the existing value is returned. |
Source code in django_query_capture/settings.py
@lru_cache
def get_config() -> typing.Dict[str, typing.Any]:
"""
Utilities that help you use the default settings if you don't use the user
Returns:
Among the values of [settings](../home/settings.md), the existing value is returned.
"""
USER_CONFIG = getattr(settings, "QUERY_CAPTURE", {})
CONFIG = CONFIG_DEFAULTS.copy()
CONFIG.update(USER_CONFIG)
return CONFIG