I think request.META is what you're looking for, i.e.: referrer = request.META.get('HTTP_REFERER', '/')
On Jan 22, 9:39 am, "Andy Dustman" <[EMAIL PROTECTED]> wrote: > I have a 404 page that I would like to display some of the HTTP > headers (particularly HTTP_REFERER) in so that user receiving the > error can make a usable report. Is there some way at getting at this > information in a template without having to have your view return a > HttpResponseNotFound object? I'm using get_object_or_404() but the > same problem applies with generic views. > > -- > Patriotism means to stand by the country. It does > not mean to stand by the president. -- T. Roosevelt > > This message has been scanned for memes and > dangerous content by MindScanner, and is > believed to be unclean. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---