How to set path on a HttpRequest in django code example Example: httpresponse django from django.http import HttpResponse