Refactoring adminsite.py to allow all models and be configurable via settings.py

This commit is contained in:
Andrew Bastien 2023-10-26 13:05:42 -04:00
parent 78221f8ac3
commit 5bfe5602b8
2 changed files with 26 additions and 16 deletions

View file

@ -1033,6 +1033,24 @@ MIDDLEWARE = [
"evennia.web.utils.middleware.SharedLoginMiddleware",
]
# A list of Django apps (see INSTALLED_APPS) that will be listed first (if present)
# in the Django web Admin page.
DJANGO_ADMIN_APP_ORDER = [
"accounts",
"objects",
"scripts",
"comms",
"help",
"typeclasses",
"server",
"sites",
"flatpages",
"auth",
]
# The following apps will be excluded from the Django web Admin page.
DJANGO_ADMIN_APP_EXCLUDE = list()
######################################################################
# Evennia components
######################################################################