getting referrer from request

I'm having trouble retrieving the referrer from the request, here's my
code:

referrer = headers["HTTP_REFERER"]

I can see the referrer when I inspect the request object itself, but
haven't been able to figure out how to retrieve it. In the past I used
the code above, but I'm not seeing the referrer in the headers for some
reason (there is no HTTP REFERRER key).

Any thoughts? Perhaps I'm retarded :slight_smile:

Hi Phil --

Or better yet,

request.referer