45👍
✅
use unregister
:
from django.contrib import admin
from django.contrib.sites.models import Site
admin.site.unregister(Site)
I usually put this after the:
admin.autodiscover()
in urls.py
7👍
Perhaps commenting out django.contrib.sites
from the INSTALLED_APPS
tuple in your settings.py file will help.
- [Django]-Filtering using viewsets in django rest framework
- [Django]-How to produce a 303 Http Response in Django?
- [Django]-Django: For Loop to Iterate Form Fields
Source:stackexchange.com