#18383 closed Uncategorized (invalid)
Path in url tag must not be in quotes
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hi in documentation the path is specified like this
{% url 'path.to.some_view' v1 v2 %}
in fact there should be no quotes
{% url path.to.some_view v1 v2 %}
Change History (4)
comment:1 by , 12 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 12 years ago
my version is
print django.VERSION
(1, 4, 0, 'final', 0)
I use this documentation
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#url
is something wrong?
comment:3 by , 12 years ago
Yes, you're reading the docs for the in-development version, where the syntax of the url
tag was changed, but you're using the 1.4 version.
Use the version switcher at the bottom right to select "1.4" instead of "dev".
Either you're reading the documentation for Django 1.5, or you forgot the
{% load url from future %}
statement in the template.