From 4f188ca3e5161236d1d3452d4e551465a0f3f935 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 21 Sep 2020 12:34:34 +0200 Subject: [PATCH] Admin is autodiscovering partially --- note_kfet/settings/base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/note_kfet/settings/base.py b/note_kfet/settings/base.py index f393cab1..ac9dd050 100644 --- a/note_kfet/settings/base.py +++ b/note_kfet/settings/base.py @@ -38,9 +38,8 @@ INSTALLED_APPS = [ 'oauth2_provider', # Django contrib - # We do not import Django Admin directly to disable autodiscover. - # Autodiscover does not work with custom admin sites. - 'django.contrib.admin.apps.SimpleAdminConfig', + # Django Admin will autodiscover our apps for our custom admin site. + 'django.contrib.admin', 'django.contrib.admindocs', 'django.contrib.auth', 'django.contrib.contenttypes',