dj_angles.settings

Module Contents

dj_angles.settings.get_setting(setting_name: str, key_path: str = '', default: Any = None) Any

Get a setting from the ANGLES dictionary in settings.

Parameters:
  • setting_name (param) – The name of the setting.

  • key_path (param) – The name of the sub-dictionary under ANGLES.

  • default (param) – The value that should be returned if the setting is missing.

dj_angles.settings.get_template_loaders(cached: bool | None = None) list[str] | list[tuple[str, list[str]]]

Get the correct template loaders based on the installed libraries.

Parameters:

cached – Whether to use the cached template loader. If None, it defaults to (not settings.DEBUG).

dj_angles.settings.get_tag_regex()

Gets a compiled regex based on the initial_tag_regex setting or default of r’(dj-)’.