Answers for "to work url link in django"

1

how to get a hyperlink in django

<a href="{% url 'name_of_url' %}"> """keep the '' just change what is in between"""
Posted by: Guest on July-14-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

Python Answers by Framework

Browse Popular Code Answers by Language