Hide Auth section in Django Admin

Question:

In the Django Admin, is there any way to hide the “Auth” section? Assuming this is a clean installation of Django and barebones project with no apps, only admin.

Asked By: twampss

||

Answers:

You can use admin.site.unregister

from django.contrib.auth.models import User
from django.contrib.sites.models import Site
from django.contrib.auth.models import Group

admin.site.unregister(User)
admin.site.unregister(Group)
admin.site.unregister(Site)
Answered By: dting