Skip to content

Commit

Permalink
Defining TEMPLATES settings for test to prevent new deprecation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmuellegger committed Apr 20, 2015
1 parent ab1a982 commit e8bc9b6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/settings.py
Expand Up @@ -23,6 +23,26 @@

SECRET_KEY = '0'

TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
# Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
# list if you haven't customized them:
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
],
},
},
]


import django
if django.VERSION < (1, 6):
TEST_RUNNER = 'discover_runner.DiscoverRunner'

0 comments on commit e8bc9b6

Please sign in to comment.