Custom Dashboard


Django JET Dashboard tries to be as compatible as possible with django-admin-tools dashboard so that django-admin-tools modules could be easily ported to Django JET. In most cases in will be enough to change python imports and remove extending in modules templates.

Dashboard represents Dashboard class instance with DashboardModule class instances as its children. Any custom Dashboard class should inherit jet.dashboard.dashboard.Dashboard and use init_with_context to fill it with widgets. You should add your widgets to children and available_children attributes.

Before continue make sure you have completed Dashboard Installation.

Set Up Custom Dashboard

  • Create in any suitable location (e.g., in your project root) with the following content:

    from django.utils.translation import ugettext_lazy as _
    from jet.dashboard import modules
    from jet.dashboard.dashboard import Dashboard, AppIndexDashboard
    class CustomIndexDashboard(Dashboard):
        columns = 3
        def init_with_context(self, context):
                        'title': _('Django documentation'),
                        'url': '',
                        'external': True,
                        'title': _('Django "django-users" mailing list'),
                        'url': '',
                        'external': True,
                        'title': _('Django irc channel'),
                        'url': 'irc://',
                        'external': True,
  • Add to your path to created (example for in project root):

JET_INDEX_DASHBOARD = 'dashboard.CustomIndexDashboard'

That’s all, now you have dashboard with only one widget - LinkList. Dashboard reset may be needed if your had another dashboard already rendered for any user. Visit Dashboard Modules to learn other widgets you can add to your custom dashboard or Custom Dashboard Module to create your own.