Re: testing and request.META['REMOTE_ADDR']

2008-01-05 Thread Thomas
Malcolm, thanks for the answer. I should have better read src of client.py. default for query environment can be overridden like so: c = Client(REMOTE_ADDR ='127.0.0.1') - this solves my problem! > Work out which standards are relevant. If REMOTE_ADDR *must* be supplied > by all web servers, th

Re: testing and request.META['REMOTE_ADDR']

2008-01-04 Thread Malcolm Tredinnick
On Fri, 2008-01-04 at 14:30 -0800, Thomas wrote: > I am testing django.contrib.comments with django.test.client that does > not provide request.META['REMOTE_ADDR'] and therefore dies at > http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/views/comments.py#L252 > > There

testing and request.META['REMOTE_ADDR']

2008-01-04 Thread Thomas
I am testing django.contrib.comments with django.test.client that does not provide request.META['REMOTE_ADDR'] and therefore dies at http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/views/comments.py#L252 There has been a ticked #407 but that did not change all request.M