utility to register a dashboard to be used when creating the main project dashboard. This dashboard needs to be a DashboardGroup
Note
Note that the application dashboard is registered via a different mechanism, i.e.: the registration of admin_tools. That register function needs a DashboardAppIndex class. Both are registered within app’dashboars.py that will be read only if urs.py starts an autodiscovery:
import admin_tools.dashboard admin_tools.dashboard.autodiscover()
Info are kept in a dict named registry than can be accessed to loop on registered applications:
from jmb.core.adm import dashboard
for appname, dash in dashboard.registry.iteritems():
...
The whole dahboard machinery is fired from the variables:
ADMIN_TOOLS_DASHMOARD: | |
---|---|
whose default is set as ../dashboard.JumboDashboard by jmb-start skel | |
ADMIN_TOOLS_MENU: | |
whose default is set as ../menu.JumboMenu by jmb-start skel |
Note
the menu is triggered from a templatetag withing admin/base_site.html
It’s up to aplication authors to correctly set it up, so that out default dashboard.py, present in out Skeleton will find and display it.
Register a admin_tools.dashboard.modules.Group group to be
Parameters: |
|
---|