[Django]-Removing 'Sites' from Django admin page

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

👤dting

7👍

Perhaps commenting out django.contrib.sites from the INSTALLED_APPS tuple in your settings.py file will help.

Leave a comment