Re: Viewing IP address in the login screen, using Django authentication

2011-10-10 Thread Cal Leeming [Simplicity Media Ltd]
On Mon, Oct 10, 2011 at 12:30 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hi Peter, > > You need to be using the RequestContext middleware - see 'option #1' on the > following: > ^^^ sorry - I misused the word middleware - possibly cos I was thinking ab

Re: Viewing IP address in the login screen, using Django authentication

2011-10-10 Thread Cal Leeming [Simplicity Media Ltd]
Hi Peter, You need to be using the RequestContext middleware - see 'option #1' on the following: http://lincolnloop.com/blog/2008/may/10/getting-requestcontext-your-templates/ Once you've got that, you can then use {{request.META}} within your templates. There is also a how to here, which shows

Viewing IP address in the login screen, using Django authentication

2011-10-10 Thread peter-ctp
Folks I am using the standard django authentication to allow people access to various web resources. I manage the password/username logins through the template login.html file and almost everything works fine. However: I would like to show the IP address of the user's computer, as it is seen by t