так в URLS?
                  
                  
                      path('login/',
                  
                  
                           LoginView.as_view
                  
                  
                           (
                  
                  
                               template_name='app/login.html',
                  
                  
                               authentication_form=forms.BootstrapAuthenticationForm,
                  
                  
                               extra_context=
                  
                  
                               {
                  
                  
                                   'title': 'Log in',
                  
                  
                                   'year' : datetime.now().year,
                  
                  
                               }
                  
                  
                           ),
                  
                  
                           name='login'),
                  
                  
                
LOGIN_REDIRECT_URL = в settings.py
Обсуждают сегодня