Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added AUTHENTICATION_BACKENDS with username authentication by default

  • Loading branch information...
commit c72eea55aa03de02bd4ae048bda8a11100ae1249 1 parent 3998965
@brosner brosner authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 project_name/settings.py
View
4 project_name/settings.py
@@ -183,3 +183,7 @@
ACCOUNT_LOGIN_REDIRECT_URL = "home"
ACCOUNT_LOGOUT_REDIRECT_URL = "home"
ACCOUNT_EMAIL_CONFIRMATION_EXPIRE_DAYS = 2
+
+AUTHENTICATION_BACKENDS = [
+ "account.auth_backends.UsernameAuthenticationBackend",
+]
Please sign in to comment.
Something went wrong with that request. Please try again.