IIRC, that gets set based on what is in the login form's hidden field named "next". REDIRECT_FIELD_NAME is in django.contrib.auth and is set to "next" by default.
You can override it in the template like this: <input type="hidden" name="next" value="/"> This will always redirect to the root of the site "/". If that value is empty, it will default to /accounts/profile/ after login. So make sure to set it. I've actually done this in my login template: <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}/{% endif %}"> This uses the next value if it exists -- when the login_required decorator takes over and makes the user login, it sets the next variable to where the user tried to go. But if it doesn't exist, I force it so Django doesn't default to /accounts/profile/. -Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---