[Answer]-Django grappeli – include link to custom admin page in side-panel dropdown-menu

1👍

✅

Look for the ADMIN_MENU_ORDER-constant in your settings.py.

It probably looks like this:

# ADMIN_MENU_ORDER = (
#     ("Content", ("pages.Page", "blog.BlogPost",
#        "generic.ThreadedComment", ("Media Library", "fb_browse"),)),
#     ("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
#     ("Users", ("auth.User", "auth.Group",)),
# )

You have to uncomment these lines first. Assuming your recently created admin page is called verycustom.SuchCustomPage, you have to insert it at the desired position in your menu-list.

Example:

ADMIN_MENU_ORDER = (
     ("Content", ("pages.Page", "verycustom.SuchCustomPage", "blog.BlogPost",
        "generic.ThreadedComment", ("Media Library", "fb_browse"))),
     ("Site", ("sites.Site", "redirects.Redirect", "conf.Setting")),
     ("Users", ("auth.User", "auth.Group",)),
)

Edit: You’ll find a detailed explaination in the official documentation.

Leave a comment