UNFOLD setting in your Django settings file. All settings are optional and have sensible defaults.
Configuration structure
Add theUNFOLD dictionary to your Django settings:
settings.py
Site branding
The site title displayed in the browser tab and admin header.
The main header text displayed in the admin interface.
Subheader text displayed below the main header.
Content for the site dropdown menu in the header.
URL the site logo/title links to.
Path to the icon displayed in the admin interface.
Symbol or short text displayed alongside the site title.
Path to the logo image displayed in the admin interface.
Display options
Show the history link in the admin interface for objects.
Display the “View on site” button when available.
Enable language switcher in the admin interface.
Dictionary mapping language codes to flag icons or images.
Show a back button in the admin interface navigation.
Environment
Environment name displayed in the admin interface (e.g., “Development”, “Staging”, “Production”).
Prefix added to browser tab titles based on environment.
Dashboard
Python path to a callback function that customizes the dashboard view.
Forms
Configuration for form widget styles and classes.
Account
Account menu configuration.
Languages
Language switcher configuration.
Command palette
Command palette search configuration.
Sidebar
Sidebar navigation configuration.
Tabs
Configuration for tab navigation in the admin interface. Define custom tabs for organizing admin sections.
Extensions
Configuration for Django Unfold extensions.
Example configuration
settings.py
Settings are merged with defaults using deep merging. You only need to specify the settings you want to override.