You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
343 B

  1. from django.conf import settings
  2. from django.test.runner import DiscoverRunner
  3. class CustomRunner(DiscoverRunner):
  4. def __init__(self, *args, **kwargs):
  5. # For speed:
  6. settings.PASSWORD_HASHERS = \
  7. ('django.contrib.auth.hashers.MD5PasswordHasher', )
  8. super(CustomRunner, self).__init__(*args, **kwargs)