view_xyz is the view function.  No arguments.

exps is the application.  pams is project.

pams/urls.py

urlpatterns = patterns('',
    # Example:
    # (r'^pams/', include('pams.foo.urls')),
    (r'pams/', include('pams.exps.urls')),


pams/exps.urls.py

from django.conf.urls.defaults import *
from django.views.generic import list_detail
from pams.exps.models import *

urlpatterns = patterns('pams.exps.views',
    (r'exps/xyz/$', 'view_xyz'),


view_xyz is defined in pams/exps/views.py.  Its just a dummy function which
gets some data through POST and prints out a table.

Thanks

Umapathy


On Wed, Oct 28, 2009 at 7:05 PM, Gabriel . <[email protected]> wrote:

>
> On Wed, Oct 28, 2009 at 3:55 PM, Umapathy S <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to