Admin is autodiscovering partially

This commit is contained in:
Alexandre Iooss 2020-09-21 12:34:34 +02:00
parent 72bac75fbd
commit 4f188ca3e5
1 changed files with 2 additions and 3 deletions

View File

@ -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',