Django apps as well as third-party apps come with their own administration settings; however, there is a mechanism to switch these settings off and use your own better administration settings. In this recipe, you will learn how to exchange the administration settings for the
django.contrib.auth app with custom administration settings.
custom_admin app and put this app under
INSTALLED_APPS in the settings.
Insert the following content in the new
admin.py file in the
# custom_admin/admin.py # -*- coding: UTF-8 -*- from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth.admin import UserAdmin, GroupAdmin from django.contrib.auth.admin ...