0
How to unregister Group table in Django ?
I am trying to unregister a table named Group[from django.contrib.auth.models import Group ] ''' admin.py from django.contrib import admin from django.contrib.auth.models import Group admin.site.unregister(Group) ''' Then it is showing error like this raise NotRegistered('The model %s is not registered' % model.__name__) django.contrib.admin.sites.NotRegistered: The model Group is not registered If I am trying to register the Group ''' admin.py from django.contrib import admin from django.contrib.auth.models import Group admin.site.register(Group) ''' Then it is showing like this raise AlreadyRegistered(msg) django.contrib.admin.sites.AlreadyRegistered: The model Group is already registered in app 'auth'
1 Answer
0
try to see in the setting.py file and place your apps below the django apps (not above) in INSTALLED_APPS