WARNINGS: ?: (1_6.W001) Some project unittests may not execute as expected.
tl;dr A one-line fix for this common bug when updating an older Django project to Django 1.6+
After upgrading from Django 1.5 to Django 1.7 I came across the following warning whenever I started my local server:
WARNINGS: ?: (1_6.W001) Some project unittests may not execute as expected. HINT: Django 1.6 introduced a new default test runner. It looks like this project was generated using Django 1.5 or earlier. You should ensure your tests are all running & behaving as expected. See https://docs.djangoproject.com/en/dev/releases/1.6/#new-test-runner for more information.
python manage.py check
So how to fix? The answer is you have to explicitly define a test runner starting in Django 1.6. So simply add the following single line to your settings file:
# settings.py TEST_RUNNER = 'django.test.runner.DiscoverRunner'