import from django.http rather than django.http.response for compatability
configure django environment before running tests
Merge pull request #1442 from asmacdo/fix-django-tests

Fix django tests