Hey all --

   I just can't get the urlresolvers.reverse() to work, and I think I
found a bug in it.  I have a "logout" method defined in two files, a
users.py file and a home.py file.  There's also two views mapped in
the urls.py file, a "myapp.users.logout" and a "myapp.home.logout".

   In my code, if I have the following lines:

    print urlresolvers.reverse('myapp.home.logout')
    print urlresolvers.reverse('myapp.users.logout')

... I get two urls printed to output.  If, instead, I have ...

    print urlresolvers.reverse('myapp.users.logout')
    print urlresolvers.reverse('myapp.home.logout')

... the first call fails with the following error:

NoReverseMatch at /myapp/svn/
Reverse for '<function logout at 0x030594F0>' with arguments '()' and
keyword arguments '{}' not found.

Any suggestions what's going on, here?  Is this a bug, or am I missing
something obvious?

-- Chris
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to