Hi
I am trying to check an IP so some information will/will not be
displayed based on the first 8 digites of the remote IP address.
I have a vairable ip_address which contains the remote address and a
vairable accept_ip with a value "192.168." but when I carry out the
following it is not working
till cant access the ip address.
Can anyone tell me what I am doing incorrectly.
Thanks
Ken
On Mar 15, 1:49 pm, "ge...@aquarianhouse.com"
wrote:
> it seem to me, it's in the template.
>
> when it should work like this:
>
> {{ request.META.REMOTE_ADDR }}
>
> btw:
Hi
I am trying to access the remote addr in a view.
Using request.META['REMOTE_ADDR'] I get an error
Exception Type: TemplateSyntaxError
Exception Value: Could not parse the remainder: '['REMOTE_ADDR']' from
'request.METTA['REMOTE_ADDR']'
How do I get over this?
Thanks
Ken
--
You received
3 matches
Mail list logo