---
title: '{% url %}'
description: >-
  used to output the path to the view mapping to `urlname` as defined in the URLConf
  file.
date: '2026-08-02'
categories:
  - Template Tag
  - Utility
canonical: https://www.djangotemplatetagsandfilters.com/tags/url/
doc_link: https://docs.djangoproject.com/en/6.0/ref/templates/builtins/#url
---

# {% url %}

used to output the path to the view mapping to `urlname` as defined in the URLConf file.

## Documentation

Used to output the path to the view mapping to `urlname` as defined in the *URLConf* file.

## Commentary

This is a big topic. See the official documentation on the [url tag](https://docs.djangoproject.com/en/6.0/ref/templates/builtins/#url) and on [URL dispatcher](https://docs.djangoproject.com/en/6.0/topics/http/urls/).
