Wednesday, May 25, 2011

NoReverseMatch while rendering

I got the following TemplateSyntaxError:

Caught NoReverseMatch while rendering: Reverse for 'profile_detail'
with arguments '('',)' and keyword arguments '{}' not found.

The exact line causing the issue is the following in my
view_phone.html template file:

<div class="details">{% blocktrans %}added by{% endblocktrans %} <a
href="{% url profile_detail phone.adder.username %}">{{ phone.adder }}
</a></div>{% blocktrans %}on{% endblocktrans %} {{ phone.added|date }}

Has anyone seen this before? My urls.py seem to be configured properly
etc. Can't seem to figure this one out.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment