mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +00:00
Fixed #29695 -- Added system checks for admin's app dependencies and TEMPLATES setting.
This commit is contained in:
parent
ac29fec111
commit
371ece2f06
4 changed files with 182 additions and 38 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue