#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') ]