pep8 cleanup and fix test runner for new django

This commit is contained in:
Michael Kutý 2015-06-15 20:19:36 +02:00
parent 0e97716488
commit 16fe97575c
2 changed files with 7 additions and 2 deletions

View file

@ -54,5 +54,6 @@ class DbTemplatesConf(AppConf):
def configure_use_redactor(self, value):
if value and 'redactor' not in settings.INSTALLED_APPS:
raise ImproperlyConfigured("Please add 'redactor' to your "
"INSTALLED_APPS setting to make use of it in dbtemplates.")
"INSTALLED_APPS setting to make "
"use of it in dbtemplates.")
return value

View file

@ -1,3 +1,6 @@
import django
DBTEMPLATES_CACHE_BACKEND = 'dummy://'
DATABASE_ENGINE = 'sqlite3'
@ -29,4 +32,5 @@ TEMPLATE_LOADERS = (
'dbtemplates.loader.Loader',
)
TEST_RUNNER = 'discover_runner.DiscoverRunner'
if django.get_version() <= '1.6':
TEST_RUNNER = 'discover_runner.DiscoverRunner'