Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. class LoginView(RedirectAuthenticatedUserMixin,
  2. AjaxCapableProcessFormViewMixin,
  3. FormView):
  4. form_class = LoginForm
  5. template_name = "account/login.html"
  6. success_url = "/"
  7. redirect_field_name = "next"
  8. # ....
  9.  
  10. class SignupView(RedirectAuthenticatedUserMixin, CloseableSignupMixin,
  11. AjaxCapableProcessFormViewMixin, FormView):
  12. template_name = "account/signup.html"
  13. form_class = SignupForm
  14. redirect_field_name = "next"
  15. success_url = "/"
  16. # ....
  17.  
  18. urlpatterns = [
  19. path('account/', include('allauth.urls'), name='account'),
  20. # ....
  21. ]
  22.  
  23. LOGIN_REDIRECT_URL = '/'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement