You were right! There was a missing view! Thanks!
-- Philippe ------ The trouble with common sense is that it is so uncommon. <Anonymous> On Friday 20 February 2009 18:11:44 Briel wrote: > I've seen errors like this when an url is missing a view to link > to. All urls defined must have a view aswell. Start checking > there else look the problem could be that you are missing args > for a url tag in your template. Some reverse matching need args > to fill in the dynamic part of the url, like the pk of an object. > That would be where I would start looking. > > On 20 Feb., 22:40, Philippe Clérié <phili...@gcal.net> wrote: > > I am working through the examples in Pratical Django Projects. > > I am using Django 1.02 on Ubuntu Intrepid. I expected to find > > problems because of version differences but in general I've > > been able to work out a solution. This one has got me stumped. > > You see the named url that is at fault is different depending > > on where it is placed in the project's urls.py. > > > > Presently it's like this and the coltrane_category_list is the > > first url in coltrane/urls/categories.py. > > > > url(r'^blog/categories/', > > include('coltrane.urls.categories')), url(r'^blog/links/', > > include('coltrane.urls.links')), url(r'^blog/tags/', > > include('coltrane.urls.tags')), url(r'^blog/', > > include('coltrane.urls.entries')), > > > > If I move the fourth line up, then the problematic url becomes > > the first one in coltrane/urls/entries.py. > > > > But I move the tags url (third from top) then they all work. > > Not for long though. As soon as I added the urls for the > > contrib/comments app, I got a problem again with a url in > > entries.py. > > > > As I said I'm stumped. Any help will be appreciated. > > > > I hope that was a clear description of the problem. Feel free > > to ask for more info. > > > > Thanks in advance. > > > > -- > > > > Philippe > > > > ------ > > The trouble with common sense is that it is so uncommon. > > <Anonymous> > > > > ================ > > Request Method:GET > > Request URL:http://denebola.logisys.ht:8000/blog/ > > Exception Type: TemplateSyntaxError > > Exception Value: Caught an exception while rendering: Reverse > > for 'cms.coltrane_category_list' with arguments '()' and > > keyword arguments '{}' not found. > > > > Original Traceback (most recent call last): > > File > > "/var/lib/python-support/python2.5/django/template/debug.py", > > line 71, in render_node > > result = node.render(context) > > File "/var/lib/python- > > support/python2.5/django/template/defaulttags.py", line 378, in > > render > > args=args, kwargs=kwargs) > > 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 > > 'cms.coltrane_category_list' with arguments '()' and keyword > > arguments '{}' not found. > > > > Exception Location: > > /var/lib/python-support/python2.5/django/template/debug.py in > > render_node, line 81 > > Python Executable: > > /usr/bin/python > > Python Version: > > 2.5.2 > > Python Path: > > ['/home/philippe/prj/django/cms', '/home/philippe/prj/django', > > '/home/philippe/prj/django/cms', '/usr/lib/python2.5', > > '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', > > '/usr/lib/python2.5/lib-dynload', > > '/usr/local/lib/python2.5/site- packages', > > '/usr/lib/python2.5/site-packages', '/var/lib/python- > > support/python2.5'] > > Server time: > > Fri, 20 Feb 2009 16:23:46 -0500 > > ================ > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---