These docs are a work-in-progress and are currently undergoing a major rewrite!
Forge Pro

Staff toolbar

The staff toolbar is enabled for every user who is_staff.

Forge staff toolbar


Add forgestafftoolbar to your INSTALLED_APPS, and the {% stafftoolbar %} to your base template:

<!-- base.template.html -->
{% load stafftoolbar %}
<!doctype html>
<html lang="en">
    {% stafftoolbar %}

More specific settings can be found below.

Staff links are shown on the right-hand side of the toolbar and can be customzed. By default, it shows a link back to the Django admin:

from forgestafftoolbar import StaffToolbarLink

    StaffToolbarLink(text="Admin", url="admin:index"),

Container class

To make the toolbar better match your layout, you can change the classes via settings:

# (showing default values)
STAFFTOOLBAR_CONTAINER_CLASS = "container px-4 mx-auto"