johnnyice wrote:
> Hi All,
>
> I'm running Pylons 0.9.5 with Mako and a couple other add-ons.
> I want to enable a 'Back' link, but due to other restrictions I can't
> use javascript's history method.
>
> I'm trying to get the HTTP referrer to link to, but I can't seem to
> understand why it's always empty (I am moving from one page to another
> within my web site).
>
> Here's what I'm trying:
>
> import os
> os.environ.get('HTTP_REFERER')
>
> but it's just returns an empty string (the default).
Use request.environ.get('HTTP_REFERER')
--
Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org
: Write code, do good : http://topp.openplans.org/careers
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---