Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-19 Thread Steve Holden
Brian Neal wrote: > > > On Sep 19, 12:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote: >> That's annoying: now *I* have a (named) pattern that won't reverse with >> the URL tag: specifically, the edit profile URL from the Google code >> profiles app: >> >>url(r'^edit/$', >>

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-19 Thread Brian Neal
On Sep 19, 12:45 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > That's annoying: now *I* have a (named) pattern that won't reverse with > the URL tag: specifically, the edit profile URL from the Google code > profiles app: > >                        url(r'^edit/$', >                            vi

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-19 Thread Steve Holden
Brian Neal wrote: > > On Sep 16, 4:09 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > >> Brian Neal wrote: >> >>> I might have found my answer. I was looking at the list of >>> incompatible changes and found this: >>> >>> http://code.djangoproject.com/changeset/8760 >>> >>> Whi

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Malcolm Tredinnick
On Mon, 2008-09-15 at 20:44 -0700, Ross wrote: > Check out the description of the {% url %} tag in the Django > documentation: > > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url > > It does not expect the project name to be in the URL. Try dropping > "gpp" and just use "weblin

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Brian Neal
On Sep 16, 4:09 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Brian Neal wrote: > > I might have found my answer. I was looking at the list of > > incompatible changes and found this: > > >http://code.djangoproject.com/changeset/8760 > > > Which led me to this: > > >http://docs.djangoproject.com

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Steve Holden
Brian Neal wrote: > I might have found my answer. I was looking at the list of > incompatible changes and found this: > > http://code.djangoproject.com/changeset/8760 > > Which led me to this: > > http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse > > I quote from the docs: > > "The re

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Brian Neal
I might have found my answer. I was looking at the list of incompatible changes and found this: http://code.djangoproject.com/changeset/8760 Which led me to this: http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse I quote from the docs: "The reverse() function can reverse a large

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread akonsu
hello, you could try named url patterns. > I am also seeing strange things if I change the order of the URLs in > my URL patterns list. please define "strange things" :) in general, the order of urls matters because django starts rverse lookup from the top of the list and stops at the first mat

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-16 Thread Brian Neal
On Sep 15, 10:44 pm, Ross <[EMAIL PROTECTED]> wrote: > Check out the description of the {% url %} tag in the Django > documentation: > > http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url > > It does not expect the project name to be in the URL. Try dropping > "gpp" and just use "web

Re: Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-15 Thread Ross
Check out the description of the {% url %} tag in the Django documentation: http://docs.djangoproject.com/en/dev/ref/templates/builtins/#url It does not expect the project name to be in the URL. Try dropping "gpp" and just use "weblinks.views.view_links". On Sep 15, 9:19 pm, Brian Neal <[EMAIL

Problem with url tag (Caught an exception while rendering: Reverse ...)

2008-09-15 Thread Brian Neal
This is my urls.py for an app (notice the two that start with ^category/, they both vector to my function view_links): from django.conf.urls.defaults import * urlpatterns = patterns('gpp.weblinks.views', (r'^$', 'link_index'), (r'^add/$', 'add_link'), (r'^category/(?P\d+)/$', 'view_link