Skip to content

Commit

Permalink
example_project | setting - use new Test Runner for django version > 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bsvetchine committed Apr 3, 2015
1 parent 9f2570c commit 6c6d2c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion example_project/settings.py
Expand Up @@ -104,7 +104,10 @@

LOGIN_REDIRECT_URL = '/'

TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
if django.VERSION < (1, 8):
TEST_RUNNER = 'django.test.simple.DjangoTestSuiteRunner'
else:
TEST_RUNNER = 'django.test.runner.DiscoverRunner'

AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend',
Expand Down

0 comments on commit 6c6d2c5

Please sign in to comment.