Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django reverse function

from django.urls import reverse

def myview(request):
    return HttpResponseRedirect(reverse('url_name'))
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #reverse #function
ADD COMMENT
Topic
Name
7+1 =