Skip to content

no header displayed. Goal custom header #652

@AliVleotsky

Description

@AliVleotsky

I have installed jazzmin for my django application. All is working fine except the header.

here is the settings I am using.

Jazzmin admin theme settings (customize as needed)

JAZZMIN_SETTINGS = {
"SITE_TITLE": "Dose Admin",
"SITE_HEADER": "Dose Admin Portal",
"SITE_BRAND": "DoseSaaS",
"WELCOME_SIGN": "Welcome to DoseSaaS Admin",
"copyright": "DoseSaaS 2025",
"show_ui_builder": True,
# Example: set a custom logo (put your logo in static directory)
# "site_logo": "img/dose_logo.png",
# Example: set a custom favicon
# "site_icon": "img/favicon.ico",
# Example: set a custom color theme
"PRIMARY_COLOR": "#007bff",
"SECONDARY_COLOR": "#6c757d",
"topmenu_links": [

    # Url that gets reversed (Permissions can be added)
    {"name": "Main",  "url": "/dose/", "permissions": ["auth.view_user"]},

    # external url that opens in a new window (Permissions can be added)
    {"name": "Support", "url": "https://github.com/farridav/django-jazzmin/issues", "new_window": True},

    # model admin to link to (Permissions checked against model)
    {"model": "auth.User"},

],
# More options: https://django-jazzmin.readthedocs.io/en/latest/configuration/

}
and my templates section of settings.

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [
os.path.join(BASE_DIR, 'dose', 'templates'),
os.path.join(BASE_DIR, 'templates'),
],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'mysite.custom_context_processors.tenant_theme_context',
'dose.context_processors.tenant_context',
],

    },
},

]
jazzmin is at the top of the INSTALLED_APPS

I have tried creatng base.html and base_site.html to create a custom header in arious blocks, but no luck. removing or renaming base.html and base_site.html so jazzmin rerts to the package versions.

According to the docs the setting "SITE_HEADER": "Dose Admin Portal", is all that is needed to turn on the header, but no luck.

my goal is to create a custom header with some branding, and some other things I had in my header before installing jazzmin.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions