Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django reverse

from django.urls import reverse

def myview(request):
    return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #reverse
ADD COMMENT
Topic
Name
7+2 =