Thanks Malcom, I changed the views function name but still got the same error so I don't know if it's a bug. I will try to take a closer look at it, but I really don't know why this may happen. Does anybody else has an idea?
Thank you, Regards, A Mele On 30 jul, 22:28, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-07-30 at 19:28 +0000, zenx wrote: > > Hi, > > > I get the following error when trying to use the {% url %} > > templatetag. I have read the documentation several times but cannot > > understand where is the problem: > > > AttributeError at /c/albums/wonderful-world/ > > 'str' object has no attribute 'callback' > > > My urls.py: > > urlpatterns = patterns('', > > url(r'^artists/(?P<slug>[-\w]+)/$', view_artist, name='view- > > artist'), > > .... > > > My template: > > ... > > {% url view-artist slug=album.artist.slug %} > > ... > > > I have tried also {% url view-artist album.artist.slug %} but get > > still the same error :( > > Any ideas why this might happen? > > Almost certainly I bug. I suspect the problem is caused by your view > functions name and the url pattern's name being the same. Change the > name string to something else for the time being. And open a ticket > about this so that we don't lose track of it (I'm not in a position to > be able to fix it right at the moment -- about to run out of battery > power). > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---