This commit is contained in:
Francisco Rodriguez
2022-11-26 19:31:42 -07:00
parent db865ef49c
commit 77d2b02a92
9 changed files with 343 additions and 17 deletions

View File

@@ -75,7 +75,20 @@ AUTHENTICATION_BACKENDS = [
]
WSGI_APPLICATION = 'Admin.wsgi.application'
ACCOUNT_FORMS = {
'login': 'allauth.account.forms.LoginForm',
'signup': 'allauth.account.forms.SignupForm',
'add_email': 'allauth.account.forms.AddEmailForm',
'change_password': 'allauth.account.forms.ChangePasswordForm',
'set_password': 'allauth.account.forms.SetPasswordForm',
'reset_password': 'allauth.account.forms.ResetPasswordForm',
'reset_password_from_key': 'allauth.account.forms.ResetPasswordKeyForm',
'disconnect': 'allauth.socialaccount.forms.DisconnectForm',
}
#LOGIN_URL = "/accounts/login/"
LOGIN_REDIRECT_URL = '/'
ACCOUNT_LOGOUT_REDIRECT_URL = '/accounts/login/'
ACCOUNT_SIGNUP_REDIRECT_URL =LOGIN_REDIRECT_URL
# Database
# https://docs.djangoproject.com/en/4.1/ref/settings/#databases