Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

url routing in django

#url routing in django
<a href="{% url 'home' %}" class="btn btn-primary my-2">Back</a>

#here 'home' is the name of url routing in urls.py
urlpatterns = [
    path('', project.base, name = 'home')
] 
 
PREVIOUS NEXT
Tagged: #url #routing #django
ADD COMMENT
Topic
Name
2+4 =