Removing Auth menu from django admin
By default, when including 'django.contrib.auth' as part of your django project's INSTALLED_APPS, an "Auth" section will be added to the project's admin frontpage. Following code in urls.py will remove this section from the admin:
from django.contrib.auth.models import User, Group
from django.contrib import admin
admin.autodiscover()
# remove "Auth" menu's from admin
admin.site.unregister(User)
admin.site.unregister(Group)
Comments