Correct me if I'm wrong, but I think 1.4's documentation has jumped the gun 
in describing the url template tag's syntax.

According to 1.4's 
documentation<https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#url>
:

{% url 'path.to.some_view' v1 v2 %}
>>
> The first argument is a path to a view function in the format 
> package.package.module.function. It can be a quoted literal or any other 
> context variable. 


Based on some simple tests I've run, it cannot be a quoted literal.  i.e. {% 
url myapp.views.home %} works, while {% url 'myapp.views.home' %} fails.

This makes complete sense after taking a look at the docs for 1.3. It 
contains a "Forwards compatibility" section that says this quoted view 
behavior will be the standard in 1.5, and until then {% load url from 
future %} is necessary to enable it, but the 1.4 docs describe the 
situation as if it is already the standard.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/mRBNdd771u8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to