By default, in Django-admin there is Users, Groups, and Sites apps. How can I remove Groups and Sites?
I tried to remove admin.autodiscover()
from root urls. Then, when I added something like admin.site.register(User, UserAdmin)
somewhere in my app models I got an AlreadyRegistered
exception (this is fairly right - models users already registered in django.contrib.auth).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…