NoReverseMatch with {% url … %} and keyword args
问题 I'm having a problem with this error: Caught NoReverseMatch while rendering: Reverse for ''pennies.views.seed_preview'' with arguments '()' and keyword arguments '{'sa': 1724158887L, 'sh': 31L}' not found. which is produced by this bit of template: <a href="{% url 'pennies.views.seed_preview' sh=seed.id sa=seed.salt %}"> Preview</a> and this bit of url.py url(r'^seedpreview/sh=(?P<shareable_id>\d+)/sa=(?P<salt>\d+)$', \ 'pennies.views.seed_preview'), and this function signature def seed