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.

13 lines
404 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 = ("django.contrib.auth.hashers.MD5PasswordHasher",)
  7. # Send emails synchronously
  8. settings.BLOCKING_EMAILS = True
  9. super(CustomRunner, self).__init__(*args, **kwargs)