Hiya,
Given: >>> from django.test.client import Client >>> c = Client() >>> c.post('/register/',{username=username,password=password}) Traceback (most recent call last): ... KeyError: 'HTTP_HOST' Part of the register view code contains the following: ... request.META["HTTP_HOST"] ... The problem seems to be that the test client does not inject the META (Or at least some of the META) data. Am I using the wrong construct? If so how do I get around this problem? Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---