Hi,

in a previous thread i posted about a problem that i had with explorer
not keeping
track of HTTP_REFERER. I needed this since i wanted to return to a
certain page the user came from.
I then changed my code so it works on Firefox & Explorer:
    try:
        page = request.META["HTTP_REFERER"]
        history[1] = history[0]
        history[0] = page
    except Exception, e:
        history[1] = history[0]
        history[0] = request.GET["ref"]

Later on i can do this:
return HttpResponseRedirect(history[1])

Now, since i have several views the user can end up at the form of the
model, it gets a bit hairy and i was thinking how i would proceed
best.

I was thinking about using sessions to keep track of the pages and
then having some pages assigned as "main pages". These main pages
would be the pages where a user returns to after a given action
(delete, edit, ...)

Ideas or comments?

Regards,
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to