python - Template url, number with 'L' -
i've got next code in template:
{% url "app.views.details" d.id %}
normally works good, have problem in end of id 'l', i'm getting exception:
reverse 'app.views.details' arguments '(4l,)' , keyword arguments '{}' not found.
what wrong id now?
edit: here url.conf:
url(r'^detailed-stats/(?p<id>\d+)/', 'app.views.details', name='details'),
long
numbers works \d+
pattern, seek utilize name
param of route instead:
{% url "details" id=d.id %}
python django
No comments:
Post a Comment