redirect to frontpage after login

This commit is contained in:
Thomas Steen Rasmussen 2017-03-10 00:01:02 +01:00
parent dc45460675
commit 950ae4f2dc

View file

@ -75,8 +75,6 @@ TEMPLATES = [
}, },
] ]
LOGIN_REDIRECT_URL = 'profiles:detail'
AUTHENTICATION_BACKENDS = ( AUTHENTICATION_BACKENDS = (
'django.contrib.auth.backends.ModelBackend', # Handles login to admin with username 'django.contrib.auth.backends.ModelBackend', # Handles login to admin with username
'allauth.account.auth_backends.AuthenticationBackend', # Handles regular logins 'allauth.account.auth_backends.AuthenticationBackend', # Handles regular logins
@ -87,7 +85,7 @@ ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_EMAIL_VERIFICATION = True ACCOUNT_EMAIL_VERIFICATION = True
ACCOUNT_EMAIL_SUBJECT_PREFIX = '[bornhack] ' ACCOUNT_EMAIL_SUBJECT_PREFIX = '[bornhack] '
ACCOUNT_USERNAME_REQUIRED = False ACCOUNT_USERNAME_REQUIRED = False
LOGIN_REDIRECT_URL='/shop/' LOGIN_REDIRECT_URL='/'
LOGIN_URL = '/login/' LOGIN_URL = '/login/'
ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https' ACCOUNT_DEFAULT_HTTP_PROTOCOL = 'https'