Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class LoginView(RedirectAuthenticatedUserMixin,
- AjaxCapableProcessFormViewMixin,
- FormView):
- form_class = LoginForm
- template_name = "account/login.html"
- success_url = "/"
- redirect_field_name = "next"
- # ....
- class SignupView(RedirectAuthenticatedUserMixin, CloseableSignupMixin,
- AjaxCapableProcessFormViewMixin, FormView):
- template_name = "account/signup.html"
- form_class = SignupForm
- redirect_field_name = "next"
- success_url = "/"
- # ....
- urlpatterns = [
- path('account/', include('allauth.urls'), name='account'),
- # ....
- ]
- LOGIN_REDIRECT_URL = '/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement