Skip to main content

xldashboard

Sometimes I use this in different projects, so I decided to put it on pypi

xldashboard is a more beautiful/customizable admin dashboard for Django.

Images

Installation 🛠️

pip install xldashboard

Settings ⚙️

In settings.py

# settings.py
from xldashboard.jazzmin_default import JAZZMIN_SETTINGS, JAZZMIN_UI_TWEAKS

INSTALLED_APPS = [
    # ...
    'xldashboard',
]

# xl-dashboard
XL_DASHBOARD = {
    'General': {
        'Users': 'app.User',
    },
    'And some tab again': {
        'Product': 'shop_app.ProductModel',
    },
    # Расширенный формат:
    'users_section': {
        '__name__': 'Пользователи',
        '__background__': '#ffee55',
        'Users': 'app.User',
        'Profiles': {
            'name': 'Профили',
            'background': '#fe4',
            'icon': '/static/images/profiles.png',
            'model': 'crm.Profile',
        },
    },
    ...
}

In urls.py

# urls.py
from django.urls import path, include

urlpatterns = [
    # ...
    path('api/v1/', include('xldashboard.routes.api')),
]

Customize jazzmin.py (or just copy it)

# jazzmin.py

JAZZMIN_SETTINGS = {
    # Заголовки и логотипы# Headlines and logos
    'site_title': 'xlartas',
    'site_header': 'xlartas',
    'site_brand': 'xlartas',
    'site_logo': '/img/icon/logo.png',  # Link to logo
    'site_logo_classes': '',
    'site_icon': '/img/icon/logo.png',  # Link to Favicon (32x32 PX)

    # Logo on the entrance page
    "login_logo": '/img/icon/logo.png',
    "login_logo_dark": '/img/icon/logo.png',

    # Text on the entrance screen
    "welcome_sign": "",

    # Copyright on the footer
    "copyright": "xlartas © 2025",

    ############
    # Side menu
    ############
    "show_sidebar": True,
    "navigation_expanded": True, # Default menu is deployed
    "hide_apps": [],  # You can hide unnecessary applications
    "hide_models": [],  # Hiding unnecessary models
    "order_with_respect_to": [
        "core",
    ],

    # Custom links in the side menu
    # "custom_links": {

    # },
    "user_avatar": 'avatar',

    #################
    # Modal windows for related objects
    #################
    "related_modal_active": True,

    ###############
    # CSS and js files
    ###############
    "custom_css": "/admin/css/jazzmin.css",  # Path to CSS User
    "custom_js": "/admin/js/jazzmin.js", # Path to User JS

    ###############
    # Dark theme and interface settings
    ###############
    "theme": "darkly", # The main topic (Dark by default)
    "dark_mode_theme": "darkly",  # The topic for the dark mode

    # Turning on the color switch and UI configurator
    # "show_ui_builder": True,

    ####################
    # Additional interface settings
    ####################
    "navbar_small_text": False,
    "footer_small_text": False,
    "body_small_text": True,
    "brand_small_text": False,
    "brand_colour": "navbar-dark",
    "accent": "accent-lightblue",
    "navbar": "navbar-dark",
    "no_navbar_border": False,
    "navbar_fixed": True,
    "layout_boxed": False,
    "footer_fixed": False,
    "sidebar_fixed": True,
    "sidebar": "sidebar-dark-indigo",
    "sidebar_nav_small_text": False,
    "sidebar_disable_expand": True,
    "sidebar_nav_child_indent": False,
    "sidebar_nav_compact_style": False,
    "sidebar_nav_legacy_style": False,
    "sidebar_nav_flat_style": False,

    "button_classes": {
        "primary": "btn-primary",
        "secondary": "btn-secondary",
        "info": "btn-info",
        "warning": "btn-warning",
        "danger": "btn-danger",
        "success": "btn-success"
    },

    "actions_sticky_top": True,
}

# Additional settings for user topics, flowers and customization
JAZZMIN_UI_TWEAKS = {
    "theme": "darkly",  # The Dark Topic by default
    "dark_mode_theme": "darkly", # The topic for the dark mode
    "navbar": "navbar-dark",  # Navigation panel color
    "accent": "accent-lightblue",  # Basic accent color
    "navbar_small_text": False,  # Regular text on the navigation panel
    "sidebar": "sidebar-dark-indigo",  # Dark side panel
    "sidebar_nav_small_text": False,  # Normal text in the side menu
    "sidebar_disable_expand": True,  # Shutdown of menu turning
    "sidebar_nav_child_indent": False,  # Without indentation for nested elements
    "sidebar_nav_compact_style": True,  # Compact navigation style
    "footer_fixed": False,  # Disconnection of a fixed footer
    "navbar_fixed": True,  # Fixed navigation panel
    "actions_sticky_top": True,  # Fixation of actions in the upper part of the page
}

Release files for xldashboard 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xldashboard 0.2.0
File Size Uploaded
xldashboard-0.2.0.tar.gz 52.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xldashboard 0.2.0
File Interpreter ABI Platform
xldashboard-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 115.0 kB

Release files / xldashboard-0.2.0.tar.gz

Download URL xldashboard-0.2.0.tar.gz
Size 52.1 kB
Tags Source
SHA-256 checksum
How to use checksums
721b08930f0b9eb9a0dced144643acf557ac1763ad1132ab843f0ae42cf0a6e2
BLAKE2b-256 checksum
How to use checksums
6b1dede30c8d0955dc29413b85ace4a9587acdef86fdc5feb67642c919a17f9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / xldashboard-0.2.0-py3-none-any.whl

Download URL xldashboard-0.2.0-py3-none-any.whl
Size 62.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
134c69088871b51a5ec98cfa167c35566f1157ee774d91d3aeb68854e549bd9a
BLAKE2b-256 checksum
How to use checksums
ada3a3f98fda70b7a8eadd4d5eaff037bcfda2a5417142b554cb15df97a7df56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page