diff mbox

[2/2] settings: Add PASSWORD_HASHER

Message ID 1468448725-15004-2-git-send-email-stephen.finucane@intel.com
State Accepted
Headers show

Commit Message

Stephen Finucane July 13, 2016, 10:25 p.m. UTC
This improves run time by a few seconds, and is worth having.

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

Comments

Andy Doan July 19, 2016, 8:56 p.m. UTC | #1
On 07/13/2016 05:25 PM, Stephen Finucane wrote:
> 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>
Stephen Finucane Aug. 13, 2016, 10:52 p.m. UTC | #2
On 19 Jul 15:56, Andy Doan wrote:
> On 07/13/2016 05:25 PM, Stephen Finucane wrote:
> > 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>

Merged.
diff mbox

Patch

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
 #