[PATCH 2/2] settings: Add PASSWORD_HASHER

Stephen Finucane stephen.finucane at intel.com
Thu Jul 14 08:25:25 AEST 2016


This improves run time by a few seconds, and is worth having.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/settings/dev.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/patchwork/settings/dev.py b/patchwork/settings/dev.py
index 63e066b..16d3aee 100644
--- a/patchwork/settings/dev.py
+++ b/patchwork/settings/dev.py
@@ -51,6 +51,15 @@ else:
 EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
 
 #
+# Auth settings
+# https://docs.djangoproject.com/en/1.8/ref/settings/#auth
+#
+
+# Use a faster, though less secure, password hasher for faster tests
+# https://docs.djangoproject.com/es/1.9/topics/testing/overview/#password-hashing
+PASSWORD_HASHERS = ['django.contrib.auth.hashers.MD5PasswordHasher']
+
+#
 # Third-party application settings
 #
 
-- 
1.7.4.1



More information about the Patchwork mailing list