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>'
- [Django]-What does the proxy_pass option in the NGINX config do?
- [Django]-Failed to load resource: the server responded with a status of 403 (Forbidden) django framework
- [Django]-Why, in Model.full_clean, is clean_fields called before clean?
- [Django]-Celery worker concurrency
- [Django]-May not set both `read_only` and `write_only`
Source:stackexchange.com