Re: Problem with url tag

2008-12-27 Thread patrick91
Resolved, if I could say so :) the problem was that I can't use reverse in forms.py 'cause is to early for doing that :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Problem with url tag

2008-12-23 Thread patrick91
Almost resolved :) I tried everything to find the error and finally I did, but I don't know how to resolve :( the error is casued by this line in a imported script: CITY_URL = reverse('get_city_list') if I remove that line the project works fine, but I need that line :( Ps. the url

Re: Problem with url tag

2008-12-22 Thread patrick91
This is really boring :( I've restarted the server, and it doens't work again :/ also I've noticed that no urls in reparations.urls can't be called with the template tag url... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Problem with url tag

2008-12-22 Thread patrick91
What a strangeness! I edit the template removing the extend tag, and it worked, next I readded the extend and it still worked :O this is really strange :/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Problem with url tag

2008-12-22 Thread patrick91
On 22 Dic, 09:24, Malcolm Tredinnick wrote: > Okay, nothing unexpected there. If I use the same lines with a dummy > view file, things certainly seem to work. > > The confusing thing here is that the url template tag is a relatively > simple wrapper around reverse(), so

Re: Problem with url tag

2008-12-22 Thread Malcolm Tredinnick
On Sun, 2008-12-21 at 23:58 -0800, patrick91 wrote: > On 22 Dic, 02:17, Malcolm Tredinnick wrote: > > Certainly a bit unexpected. Can you paste the relevant lines from your > > URL Conf file, please? > > > > Regards, > > Malcolm > > Sure :) > here it is: >

Re: Problem with url tag

2008-12-21 Thread patrick91
On 22 Dic, 02:17, Malcolm Tredinnick wrote: > Certainly a bit unexpected. Can you paste the relevant lines from your > URL Conf file, please? > > Regards, > Malcolm Sure :) here it is: url(r'foglio/(?P[0-9]+)/$', views.show_worksheet, name='show_worksheet'), Thanks

Re: Problem with url tag

2008-12-21 Thread Malcolm Tredinnick
On Sun, 2008-12-21 at 11:45 -0800, patrick91 wrote: > Hi, I've a problem with the url tag, when I call this template: > Visualizza > I get this error: > Caught an exception while rendering: Reverse for > 'catsnc.show_worksheet' with arguments '(5537,)' and keyword arguments > '{}' not found. > >

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/$', >                            

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

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

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

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

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

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