NoReverseMatch with {% url … %} and keyword args

前端 未结 2 663
春和景丽
春和景丽 2021-01-20 01:53

I\'m having a problem with this error:

Caught NoReverseMatch while rendering: Reverse for \'\'pennies.views.seed_preview\'\'
with arguments \'()\' and
keywor         


        
2条回答
  •  伪装坚强ぢ
    2021-01-20 02:48

    you are using the wrong keys, it should be

    {% url 'pennies.views.seed_preview' shareable_id=seed.id salt=seed.salt %}
    

提交回复
热议问题