Hi,
i'm trying to use user authentication. In my urls.py i have this: (r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'main/login.html' }), It works but i get redirected to /accounts/profile/ afterwards instead of a page i want. I looked at the source code: def login(request, template_name='registration/login.html'): "Displays the login form and handles the login action." manipulator = AuthenticationForm(request) redirect_to = request.REQUEST.get(REDIRECT_FIELD_NAME, '') It searches for REDIRECT_FIELD_NAME but i don't know how to set it. Also, in the docs, they are talking about the next parameter but the login function doesn't accept a "next" parameter. How do i redirect to a page i want after a successful login? (ideally to the view the login was initiated from) Thanks, Benedict --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---