On Tue, Apr 29, 2008 at 4:25 PM, Szaijan <[EMAIL PROTECTED]> wrote: > > I'm using the latest django-registration (svn). When I use the login > URL directly, so 'next' is not set, the result of a successful login > drops the user to my document root directory. I've checked in shall > and LOGIN_REDIRECT_URL is set correctly and being imported correctly, > but it is not being used for some reason. Everything else is working > properly. > > Any suggestions on debugging this would be greatly appreciated. >
I'd step through this code: http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/views.py#L12 in a debugger to see how redirect_to is getting its value. From just looking at what it does, though I'd guess that your login template includes a 'next' parameter among what it sends with the login information, since that looks to be the only way your setting's LOGIN_REDIRECT_URL would be ignored. What does your login template look like? Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

