On Mon, May 12, 2008 at 4:13 PM, M.Ganesh <[EMAIL PROTECTED]> wrote: > > Thanks Ronny for your response, however this doesn't answer my > requirement. Probably I've to state my requirement more clearly. I have > various pages for general viewing where authentication is not required. > But if a user decides to add a record, he has to first login. I take him > to a login page for that. After he logs in I want to bring him back to > the same page. Note that a user can come to the login page from any of > the different pages. Hence the 'previous page' is not always the same. >
Then you have 2 possible ways to go: 1) use referrer info from HTTP request to figure out which page the user has came from 2) embed previous_page variable in URL or POST request to login page. After successful login you can easily redirect the user back to the page where he has came from. Regards, Valts. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

