mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
pep8 cleanup and fix test runner for new django
This commit is contained in:
parent
0e97716488
commit
16fe97575c
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue