django-var-cms exposes every visual identity setting through a pair of complementary mechanisms:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/rahul-baberwal/django-var-cms/llms.txt
Use this file to discover all available pages before exploring further.
VAR_CMS_* keys in settings.py (read once at startup) and direct attributes on the var_cms_site singleton (set in any auto-discovered var_cms_admin.py). Both approaches reach the same result — use whichever fits your project structure.
Configuration via settings.py
All branding settings live under the VAR_CMS_ namespace. None are required; each has a sensible default.
Configuration via var_cms_site
Setting attributes directly on var_cms_site inside a var_cms_admin.py file overrides whatever was read from settings.py. This is useful when you want to keep branding logic close to the app that owns it, or when you need to compute values at startup (e.g. reading from the database or environment variables).
settings.py values are read during VarCMSSite.__init__() when Django starts. Assignments made to var_cms_site in var_cms_admin.py files run during app discovery — slightly later — so they always override the settings.py values.HSL Accent Color
The accent color drives buttons, active states, hover highlights, and other interactive elements throughout the panel. It is specified in HSL format as a string of three comma-separated values:var_cms_site at runtime:
Vector Logo (SVG)
For a crisp, resolution-independent logo, setVAR_CMS_LOGO_SVG to a raw SVG string instead of (or in addition to) a logo URL. When logo_svg is set it takes precedence over logo_url in the header.
Developer Profile
The Help & About section of the panel can display a developer or agency profile card. Configure it withVAR_CMS_DEVELOPER_* settings:
var_cms_site:
Complete Reference
settings.py Keys
| Setting | Default | Description |
|---|---|---|
VAR_CMS_SITE_HEADER | "VAR CMS" | Main title shown in the panel header and login page |
VAR_CMS_SITE_SUB | "CONTROL PANEL" | Subtitle displayed beneath the header |
VAR_CMS_SITE_URL | "/" | Target of the “View Site” link |
VAR_CMS_LOGO_URL | "/static/var_cms/var.png" | URL for the logo image |
VAR_CMS_LOGO_SVG | None | Raw SVG string for a vector logo (overrides LOGO_URL) |
VAR_CMS_ACCENT_COLOR | None (library default) | HSL accent color string, e.g. "142, 72%, 45%" |
VAR_CMS_ENABLE_OTP | False | Enable email OTP 2FA on login |
VAR_CMS_USERNAME_FIELD | None (uses AUTH_USER_MODEL.USERNAME_FIELD) | Override the field used to look up users on the login and forgot-password forms |
VAR_CMS_DASHBOARD_TITLE | "Command Hub" | Heading shown on the dashboard |
VAR_CMS_DASHBOARD_TEXT | (welcome string) | Welcome text; supports {username} and {user} placeholders |
VAR_CMS_HIDDEN_DASHBOARD_CARDS | [] | Model names or app_label.model_name values to hide from the dashboard |
VAR_CMS_SHOWN_DASHBOARD_CARDS | [] | When non-empty, only these models are shown on the dashboard |
VAR_CMS_DEVELOPER_NAME | "Rahul Baberwal" | Developer name in the Help section |
VAR_CMS_DEVELOPER_WEBSITE | "https://rahulbaberwal.com" | Developer website URL |
VAR_CMS_DEVELOPER_GITHUB | "https://github.com/rahul-baberwal" | GitHub profile URL |
VAR_CMS_DEVELOPER_LINKEDIN | "https://linkedin.com/in/rahul-baberwal" | LinkedIn profile URL |
VAR_CMS_DEVELOPER_EMAIL | "im@rahulbaberwal.com" | Contact email |
VAR_CMS_DEVELOPER_IMAGE | "https://github.com/rahul-baberwal.png" | Avatar image URL |
var_cms_site Attributes
All settings above have a direct counterpart on the singleton. Strip VAR_CMS_ and lower-case the name: