Re: [django] Get request URL

2011-08-03 Thread Malcolm Box
The best you can do is look for a Referrer header in the request: request.META['HTTP_REFERER'] which should be the URL of the originating page. However that may or may not be there depending on user's browser etc etc. Malcolm On 3 August 2011 00:41, He Jibo wrote: > Hi, Djangoers, > > I am tr

[django] Get request URL

2011-08-02 Thread He Jibo
Hi, Djangoers, I am trying to write a page rank banner. *I need your help on how to get the request UR*L. I want the function looks like this. If I put the following html snippet in a URL, for example, http://www.homesecurity361.com/index.html, I want the following code to show the page rank of t