#8551: Add REMOTE_ADDR: '127.0.0.1' to TestClient environment by default
------------------------------+---------------------------------------------
Reporter: schmichael | Owner: nobody
Status: new | Milestone:
Component: Unit test system | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 1 |
------------------------------+---------------------------------------------
The fake environment django.test.client.Client sets up is missing
REMOTE_ADDR. It could be very safely and accurately defaulted to
localhost (127.0.0.1).
Luckily this issue is very easy to work around when instantiating the test
Client:
{{{
c = Client(REMOTE_ADDR='127.0.0.1')
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8551>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---