]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
settings: Add PASSWORD_HASHER
authorStephen Finucane <stephen.finucane@intel.com>
Wed, 13 Jul 2016 22:25:25 +0000 (23:25 +0100)
committerStephen Finucane <stephenfinucane@hotmail.com>
Sat, 13 Aug 2016 22:38:18 +0000 (23:38 +0100)
This improves run time by a few seconds, and is worth having.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Tested-by: Andy Doan <andy.doan@linaro.org>
patchwork/settings/dev.py

index 63e066b169ea3ae8db9ac3e195e65b8c604a6687..16d3aeee704b3600dd0c101df9a00a69568d7a72 100644 (file)
@@ -50,6 +50,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
 #