Hi fellows, I have doing a custom user authentication, I have my own views to control login and logout, and works great, but now I wish use the authentication views that Django provides. When forms call to login view, Django authenticate user but then redirect to '/account/profile'. Reading the source code ( django/ contrib/auth/views.py) I realized that there is a vars REDIRECT_FIELD_NAME that is setting to redirect_to. Then I found that REDIRECT_FIELD_NAME has a 'next' inside that I suppose that is the name of the var that I must send inside URL. Well, I put this inside the form, but didn't works :( (in the login template that I have) <form method="post" action="/services/login/?next=/services/home">
The question is: How can I pass the "next" vars to login view, without hardcode this view? The logout view are using something similar to that, but is getting as a parameter (next_page). So after logout, returns to a custom page that I pass :) Am using Django 0.95 by the way. Cheers.- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---