Fixed #29695 -- Added system checks for admin's app dependencies and TEMPLATES setting.

This commit is contained in:
Rodrigo 2018-08-20 18:57:46 -03:00 committed by Tim Graham
parent ac29fec111
commit 371ece2f06
4 changed files with 182 additions and 38 deletions

View file

@ -1172,9 +1172,28 @@ class ManageCheck(AdminScriptTestCase):
'django.contrib.admin.apps.SimpleAdminConfig',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
],
sdict={
'DEBUG': True
'DEBUG': True,
'MIDDLEWARE': [
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
],
'TEMPLATES': [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
],
}
)
args = ['check']