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?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f265e829-152c-4b2b-abe6-d16972690ded%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to