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:
> <a href="{% url show_worksheet worksheet.number %}">Visualizza</a>
> I get this error:
> Caught an exception while rendering: Reverse for
> 'catsnc.show_worksheet' with arguments '(5537,)' and keyword arguments
> '{}' not found.
>
> But when I call this code from the shell:
> >>> from django.core.urlresolvers import reverse
> >>> reverse('show_worksheet', args=(5537,))
> I get the url:
> '/riparazioni/foglio/5537/'
>
> could you help me to resolve this problem?
Certainly a bit unexpected. Can you paste the relevant lines from your
URL Conf file, please?
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 [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
-~----------~----~----~----~------~----~------~--~---