0

this is a followup question to Remove default apps from Django-admin

I am trying t remove Sites from my admin site and I call

admin.site.unregister(Site)
as was suggested.

Iam getting an error saying that Site is not registered. Apparently my admin.py is called before the Site model is registered. Is there a cleaner way to accomplish what I need?

thanks konstantin

Community
  • 1
  • 1
akonsu
  • 28,824
  • 33
  • 119
  • 194

1 Answers1

0

the cause was a wrong ordering of installed applications. here is the answer: Issue with Django admin registering an inline user profile admin

Community
  • 1
  • 1
akonsu
  • 28,824
  • 33
  • 119
  • 194