from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse def response_one(request): ... return HttpResponseRedirect('/index_one/') #用下面这行也可以 #return HttpResponseRedirect(reverse('index_one'))