I have this link in a template:
<a href="{% url show_item item.id %}">Item 1</a>
and this url in the urls.py
url(r'item/(?P<id>)/$', show_item, name="page_item")
however, this error occurs:
Reverse for 'show_item' with arguments '(63L,)' and keyword arguments '{}' not found.
I looked at this question:
how to get python to not append L to longs or ignore in django template
but it did not help.
Is there another way to use the primary key, which is an integer, in constructing URLs in templates?