본문 바로가기

web/Django

remove django admin page auth menu


#remove django admin page auth menu


from django.contrib.auth.models import User, Group

from django.contrib import admin

admin.autodiscover()


admin.site.unregister(User)

admin.site.unregister(Group)