I have two views
def view1(request):
do something
return HttpResponseRedirect(reverse(view2), args1)
Now I need view2 to only work if it's referred by view1. How do I do that? I did read it somewhere, not able to recollect
@somefilter
def view2(request):
do something
#view2 will only be referred from view1, else Http404