From afd141a03ebfc807a8869f9628398020806a3a71 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 20 Oct 2012 15:25:33 -0400 Subject: [PATCH] Use fast password hashing when replying old messages locally. Without this change, one can only create a few users per second(!), which really puts a damper on quickly importing old messages. (imported from commit 26daf61b57154daa067db3daf8254c12d23da353) --- humbug/settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/humbug/settings.py b/humbug/settings.py index 417979f846..bc6fe94352 100644 --- a/humbug/settings.py +++ b/humbug/settings.py @@ -213,3 +213,9 @@ else: # For testing, you may want to have emails be printed to the console. if not deployed: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' + + # Use fast password hashing for creating testing users when not + # deployed + PASSWORD_HASHERS = ( + 'django.contrib.auth.hashers.SHA1PasswordHasher', + )