"""django-unfold configuration. This module defines branding for the Django admin using django-unfold. It intentionally avoids database-backed configuration (e.g., Constance) so that it is safe during initial migrations and in all environments. """ from evibes.settings.base import PROJECT_NAME # See django-unfold documentation for all available options. # Only minimal, production-safe branding is configured here. UNFOLD = { # Text shown in the browser title bar and in the admin header "SITE_TITLE": f"{PROJECT_NAME} Admin", "SITE_HEADER": PROJECT_NAME, # Optional URL the header/brand links to (leave default admin index) # "SITE_URL": "/admin/", # Logos and favicon served via Django staticfiles # Files are expected at: engine/core/static/logo.png, favicon.ico, favicon.png # Refer to them by their static URL path (relative), no leading slash. "SITE_LOGO": "logo.png", # If you use a different logo for dark theme, set SITE_LOGO_DARK # Otherwise Unfold will reuse SITE_LOGO # "SITE_LOGO_DARK": "logo.png", "SITE_ICON": "favicon.ico", # Sidebar behavior, search etc. (keep defaults minimal) # Unfold automatically respects user OS light/dark theme; no forcing here. }