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
as was suggested.
admin.site.unregister(Site)
Iam getting an error saying that Site is not registered. Apparently my admin.py is called before th开发者_如何学编程e Site model is registered. Is there a cleaner way to accomplish what I need?
thanks konstantin
the cause was a wrong ordering of installed applications. here is the answer: Issue with Django admin registering an inline user profile admin
精彩评论