On Wed, Oct 28, 2009 at 3:55 PM, Umapathy S <nsupa...@gmail.com> wrote:
>
> Hello there,
>
> I am developing a page which has a left side menu.  This menu is a seperate 
> html and gets includes in the base.html template.
>
> To make it less vulnerable to url changes, I am trying to implement the {% 
> url %}
>
> in lhsmenu.html
>
> <div class="LHSMenu">
> <ul class="menu expandfirst" id="menu1">
>     <li><a href="#">view</a>
>     <ul>
>         {% url exps.view_xyz as viewxyzurl %}
>         <li><a href="{{ viewxyzurl }}">xyz</a></li>
>     </ul></li>
> </ul>
> </div>
>
> I tried
>
>         <li><a href="{% url exps.view_xyz %}">xyz</a></li>
>
>
> Exception Type: TemplateSyntaxError
> Exception Value:
>
> Caught an exception while rendering: Reverse for 'exps.view_xyz' with 
> arguments '()' and keyword arguments '{}' not found.
>
> What could be the issue.  Any help much appreciated.
>
> Thanks
>

Is your view called exps.view_xyz or view_xyz? Would be usefull if you
paste your urls.py conf.

--
Kind Regards

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
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