Skip to main content

Admin dashboard for Leonardo CMS built on django-jet. Support custom menu and easy extending with auto registering of new widgets.

Installation

pip install leonardo-admin-dashboard

Configuration

This module requires dashboard_menu item in LEONARDO_CONF_SPEC:

LEONARDO_CONF_SPEC = {
    'dashboard_menu': []
}

Optionaly you can add dashboard widgets:

LEONARDO_CONF_SPEC = {
    'dashboard_widgets_available': [],
    'dashboard_widgets': []
}

Usage

Add your menu items into dashboard_menu array as string path to your menu:

dashboard_menu = ['leonardo_store.menu.store_menu']

For menu items use modules from leonardo_admin_dashboard.modules:

from leonardo_admin_dashboard import modules

store_menu = modules.SubMenuLinkList(
    _('Store'),
    children=[{
                'title': 'Catalogue',
                'url': reverse('catalogue'),
                'external': False,
                'icon': 'icon-book'
                }],
)

For more examples see menu.py or visit django-admin-tools and django-jet documentations.

Read More

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leonardo-admin-dashboard-0.0.3.tar.gz (51.2 kB view details)

Uploaded Source

File details

Details for the file leonardo-admin-dashboard-0.0.3.tar.gz.

File metadata

File hashes

Hashes for leonardo-admin-dashboard-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b016c700f998d2b11d465899442db83c93248247d57f249ebbc576dd95d6d904
MD5 c48a84cad9cf0e184c99f4f5933d95ff
BLAKE2b-256 a7ef865cdae07ff7c4e14605026683a887305cca80692f22ca1dcf055cf2e419

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page