nside_wefa.legal_consent.checks

System checks for the nside_wefa.legal_consent app.

This module registers Django system checks to validate:

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

  • Presence and structure of the NSIDE_WEFA.LEGAL_CONSENT settings

  • Availability of required legal document templates when a custom templates directory is configured

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

Functions

legal_consent_settings_check(app_configs, ...)

Validate the NSIDE_WEFA.LEGAL_CONSENT settings section.

legal_templates_files_check(app_configs, ...)

Ensure required legal template files exist when a custom directory is set.

wefa_apps_dependencies_check(app_configs, ...)

Validate app dependency order in INSTALLED_APPS for LegalConsent.