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 <hej...@gmail.com> wrote: > 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 this URL. I know how to calculate page rank after > getting the URL. My problem is,* if the following code is put at > http://www.homesecurity361.com/index.html, how can my own server, > http://www.ueseo.net know which URL is requesting the image banner*, * > http://www. ueseo.net/pagerank.gif* ? Thanks so much. > > *<a href="http://www.ueseo.net/" title="Search Engine Optimization" > target="_blank"><img src="http://www. ueseo.net/pagerank.gif" alt="Search > Engine Optimization" style="border: 0;"></a> > * > > --------------------------- > He Jibo > Department of Psychology, > Beckman Institute for Advanced Science and Technology > University of Illinois, Urbana Champaign, > 603 East Daniel St., > Champaign, IL 61820 > website: www.hejibo.info > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Malcolm Box malcolm....@gmail.com -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.