Answers for "django get current url view"

0

how to get the current url path in django template

{{ request.path }}  #  -without GET parameters 
{{ request.get_full_path }}  # - with GET parameters
Posted by: Guest on August-03-2020
1

Django how to get url path for a view

from django.urls import reverse

reverse('app1.view.view1')
Posted by: Guest on May-25-2021

Code answers related to "django get current url view"

Python Answers by Framework

Browse Popular Code Answers by Language