[Django]-Add link to main page on grappelli admin

3👍

You can use the grappelli dashboard to make a box with custom links on the admin index.
After installing the dashboard you can use the LinkList to add links.

class CustomIndexDashboard(Dashboard):

    def init_with_context(self, context):
        ...
        self.children.append(modules.LinkList(
            _('Links'),
            column=2,
            children=[
                {
                    'title': u'Homepage',
                    'url': '/',
                    'external': False,
                },
            ]
        ))
👤kanu

1👍

You can add a link to the admin title (top left corner) by adding the following to your settings.py:

GRAPPELLI_ADMIN_TITLE = '<a href="/">Homepage</a>'

Leave a comment