Used to output the path to the view mapping to urlname as defined in the URLConf file.
{% url %} Tag
used to output the path to the view mapping to urlname as defined in the URLConf file.
- Closing tag
- Not required
Documentation
More Utility Tags
block
Most useful
blocktrans
Needs {% load i18n %}
blocktranslate
Needs {% load i18n %}
Most useful
cache
Needs {% load cache %}
Most useful
comment
Most useful
csp_nonce_attr
New in Django 6.1
csrf_token
Most useful
debug
extends
Most useful
filter
get_available_languages
Needs {% load i18n %}
get_current_language
Needs {% load i18n %}
get_current_language_bidi
Needs {% load i18n %}
get_language_info
Needs {% load i18n %}
get_language_info_list
Needs {% load i18n %}
get_media_prefix
Needs {% load static %}
get_static_prefix
Needs {% load static %}
include
Most useful
language
Needs {% load i18n %}
load
Most useful
lorem
now
partial
New in Django 6.0
Most useful
partialdef
New in Django 6.0
Most useful
querystring
New in Django 5.1
Most useful
regroup
static
Needs {% load static %}
Most useful
trans
Needs {% load i18n %}
translate
Needs {% load i18n %}
Most useful
Did we get something wrong? Is there a use case for the
url tag that we should add? Please let us know.
Official Documentation
This page last updated on August 2, 2026
This page last updated on August 2, 2026

Commentary
This is a big topic. See the official documentation on the url tag and on URL dispatcher.