#11462: {% url %} tag is not working with the 'AS' modifier and named URLs
-----------------------------+----------------------------------------------
 Reporter:  x13              |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  Template system  |     Version:  1.0       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 I've included this lines into my '''urls.py'''

 {{{
 ...
 url(r'^coming-soon$', direct_to_template, {'template': 'soon.html'}, name
 ='en-soon'),
 url(r'^proximamente$', direct_to_template, {'template': 'soon.html'}, name
 ='es-soon'),
 ...
 }}}

 Then, I tried to use them in my homepage.html with the {% url ... as ...
 %} tag:

 {{{
 ...
 {% url en-soon as url_soon %}
 <a href="{{ url_soon }}">comming soon</a>
 ...
 }}}

 but it didn't work.

 Next, I tried use {% url %} without the '''as''' modifier:

 {{{
 ...
 <a href="{% url en-soon %}">comming soon</a>
 ...
 }}}


 and it worked.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11462>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to