NoReverseMatch with {% url … %} and keyword args

前端 未结 2 672
春和景丽
春和景丽 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:49

    You need to load the future url template tag in every template where you use it. Loading a template tag library does not make it available to parent or child templates.

    For more info see the Django docs on Custom libraries and template inheritance

提交回复
热议问题