this is my django+html code
{% extends "tasks/layout.html" %}
{% block body %}
<h1>Tasks Lists</h1>
<a href="[% url 'tasks:add' %]"> Add a task</a>
{% endblock %}
this is where i use varriable name add and link it to another page.
Urls.py
from django.urls import path
from . import views
app_name = "tasks"
urlpatterns=[
path("",views.index,name="index"),
path("add",views.add,name="add")
]
this is where i use the varriable name "add".