from GitHub:
$ pip install -e git+https://github.com/KuwaitNET/wagtail-django-admin.git#egg=wagtail_django_admin
- Add
wagtail_django_admin
beforewagtail.admin
at the end of yourINSTALLED_APPS
.
INSTALLED_APPS = [
...
"wagtail.admin",
"wagtail_django_admin",
"django.contrib.admin",
"wagtail.contrib.modeladmin",
]
- In
settings.py
you can add the following settings (OPTIONAL). If not defined all apps and all models are considered
WAGTAIL_ADMIN_CUSTOM_MENU = {
"<app_name>": [..., "<model_name>", ...]
}
More advanced option if you want to control the order and icon_name
WAGTAIL_ADMIN_CUSTOM_MENU = {
"<app_name>": {
...
{
"order": 200,
"icon_name": "list-ul",
"models": {
...
"<model_name>": {"order": 200, "icon_name": "mail"},
...
},
}
...
}
}
- In project
urls.py
add the following line:
path("^wagtail_django_admin/", include("wagtail_django_admin.urls", "wagtail_django_admin")),