how to make a view only accessible from an http response django code example Example: httpresponse django from django.http import HttpResponse