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

By default bundled with:

PyCharm 2024.1,

Can be installed with plugin:

Django, 241.SNAPSHOT

Last modified: 29 April 2024