Hello,
can someone explain me the setting of 'redirect_field_name' in LoginView?
in my urls.py I have the following
urlpatterns = [
url('^login/$', LoginView.as_view(template_name='accounts/login.html'), name='login'),
]
After successful signing in it redirects to default 'next'=/accounts/profile/. I'd like to redirect to my own url. Is it better to set 'next' value in view or 'redirect_field_name' in urls? I am not sure if they have similar purpose or not?