nside_wefa.locale.checks

System checks for the nside_wefa.locale app.

This module registers Django system checks to validate:

  • Application load order (nside_wefa.common before nside_wefa.locale)

  • Presence and structure of the NSIDE_WEFA.LOCALE settings, including validation that AVAILABLE is a non-empty list of strings and that DEFAULT is a string contained in AVAILABLE.

See also - Django system check framework: https://docs.djangoproject.com/en/stable/topics/checks/

Functions

locale_settings_check(app_configs, **kwargs)

Validate the NSIDE_WEFA.LOCALE settings section.

validate_available_locales(available_locales)

Validate the NSIDE_WEFA.LOCALE.AVAILABLE setting.

validate_default_locale(default_locale)

Validate the NSIDE_WEFA.LOCALE.DEFAULT setting.

wefa_apps_dependencies_check(app_configs, ...)

Validate app dependency order in INSTALLED_APPS for Locale.