Answers for "who to get the url in django using sites"

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

how to create urls in django

from django.urls import path 
 from . import views
 urlpatterns = [
    path('', views.hola, name='Hola!!!' ),
 ]
Posted by: Guest on May-28-2021

Code answers related to "who to get the url in django using sites"

Python Answers by Framework

Browse Popular Code Answers by Language