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)
This commit is contained in:
Tim Abbott 2012-10-20 15:25:33 -04:00
parent b2ce9aaa18
commit afd141a03e
1 changed files with 6 additions and 0 deletions

View File

@ -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',
)