Hello,

I have a Django application that works fine on Ubuntu Intrepid with Python 2.5
and Ubuntu Jaunty with Python 2.6.

When I try to get it to work with Debian Lenny however, I keep getting
NoReverseMatch errors.

louie:/home/django/photos# ./manage.py  shell
Python 2.5.2 (r252:60911, Jan  4 2009, 17:40:26) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.core.urlresolvers import reverse
>>> reverse('person_list')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/var/lib/python-support/python2.5/django/core/urlresolvers.py", line 
254, in reverse
    *args, **kwargs)))
  File "/var/lib/python-support/python2.5/django/core/urlresolvers.py", line 
243, in reverse
    "arguments '%s' not found." % (lookup_view, args, kwargs))
NoReverseMatch: Reverse for 'person_list' with arguments '()' and keyword 
arguments '{}' not found.

If in my urls.py, I change:

urlpatterns = patterns('',
[...]
 (r'^(.*)', include('microcomaustralia.zoph.urls'))
[...]
)

to:

urlpatterns = patterns('',
[...]
url(r'^photos/person/$', 'django.views.generic.list_detail.object_list', 
person_dict, name='person_list'),
[...]
)

ie. I copied from microcomaustralia.zoph.urls and pasted here, then it works:

louie:/home/django/photos# ./manage.py  shell
Python 2.5.2 (r252:60911, Jan  4 2009, 17:40:26) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from django.core.urlresolvers import reverse
>>> reverse('person_list')
'/photos/person/'

So it would appear that on Debian Lenny, reverse URLs are broken when using
include(...)

Are there any known compatibility issues with Django and Debian Lenny?

If not, how do I debug this issue?

In all cases I am using the latest stable version of Django (1.0.2)

Thanks
-- 
Brian May <[email protected]>

--~--~---------~--~----~------------~-------~--~----~
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