Answers for "django check path to url pattern"

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
0

django url patterns static

urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Posted by: Guest on September-15-2020

Browse Popular Code Answers by Language