mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Don't use django-discover-runner on 1.6 and up.
This commit is contained in:
parent
d9931fbf72
commit
2cc38d9ff7
1 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import os
|
||||
import uuid
|
||||
import django
|
||||
|
||||
from configurations import Configuration, pristinemethod
|
||||
|
||||
|
||||
|
|
@ -28,7 +30,8 @@ class Test(Configuration):
|
|||
|
||||
ROOT_URLCONF = 'configurations.tests.urls'
|
||||
|
||||
TEST_RUNNER = 'discover_runner.DiscoverRunner'
|
||||
if django.VERSION[:2] < (1, 6):
|
||||
TEST_RUNNER = 'discover_runner.DiscoverRunner'
|
||||
|
||||
def TEMPLATE_CONTEXT_PROCESSORS(self):
|
||||
return Configuration.TEMPLATE_CONTEXT_PROCESSORS + (
|
||||
|
|
|
|||
Loading…
Reference in a new issue