from django.core.urlresolvers import reverse
def myview(request):
return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
# reverse()
#If you need to use something similar to the url template tag in your code, Django provides the following function:
很简单。
reverse()返回的就是那个url。
Reference: