mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
[5.0.x] Added backticks around name argument in tutorial 3.
Backport of acfdf39506 from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
f33eddff8a
commit
8480f2ec36
@@ -401,7 +401,7 @@ template, the link was partially hardcoded like this:
|
|||||||
|
|
||||||
The problem with this hardcoded, tightly-coupled approach is that it becomes
|
The problem with this hardcoded, tightly-coupled approach is that it becomes
|
||||||
challenging to change URLs on projects with a lot of templates. However, since
|
challenging to change URLs on projects with a lot of templates. However, since
|
||||||
you defined the name argument in the :func:`~django.urls.path` functions in
|
you defined the ``name`` argument in the :func:`~django.urls.path` functions in
|
||||||
the ``polls.urls`` module, you can remove a reliance on specific URL paths
|
the ``polls.urls`` module, you can remove a reliance on specific URL paths
|
||||||
defined in your url configurations by using the ``{% url %}`` template tag:
|
defined in your url configurations by using the ``{% url %}`` template tag:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user