I'm trying to test an email sending feature, and the email text requires the current domain, which I'm getting from request.META ['HTTP_HOST']. On a normal system, this works fine, but when I access it using the test framework and django.test.Client, I get a KeyError exception for 'HTTP_HOST'.
I tried instantiating the Client with and without the HTTP_HOST argument, but both generate the error. Is the standard response meta data shown at http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.HttpRequest.META not supported for the test client? If it is supported, how can I ensure the response contains this meta data? Thanks, Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---