Search code examples
pythondjangoadmin

Change name of the "Authentication and Authorization" menu in Django/python


I'm learning python/Django and setting up my first project. All is going well but I've been searching like crazy on something very simple.

There is a default menu item "Authentication and Authorization" and I want to change the name. I've searched in the template if I need to extend something, I've searched if there's a .po file or what not but I can't find it nor a hint on which parameter I should overwrite in admin.py to set it.

I'm not trying to install multi language or some advanced localization, just want to change the name of that one menu item :)

Any ideas?


Solution

  • Create a custom AppConfig pointing to original django.auth module and override verbose_name. Then use your custom AppConfig in INSTALLED_APPS instead of original auth app.

    https://docs.djangoproject.com/en/1.10/ref/applications/#configuring-applications