Inspectopedia Help

Incorrect arguments in the ' {% url %}' tag

Reports missing parameters in the template file if the url() function has parameters in its URL path.

Example:

In the url.py file

url(r'^(?P<question_id>[0-9]+)/', views.detail, name='detail')

In the template file

{% url 'polls:detail' %}

Inspection Details

Available in:

PyCharm 2023.3

Plugin:

Python, 233.SNAPSHOT

Last modified: 13 July 2023