how to fetch the url by self.request django code example Example: django httpresponseredirect from django.http import HttpResponseRedirect