Django forms Reverse for '' with arguments '(7,)' and keyword arguments '{}' not found

后端 未结 2 591
悲&欢浪女
悲&欢浪女 2020-12-22 08:03

I have been running into this error for the past day and can\'t seem to solve it.

Reverse for \'\' with arguments \'(7,)\' and keyword arguments \'{}\' not          


        
2条回答
  •  眼角桃花
    2020-12-22 08:49

    I think you are missing quotes around url name:

    {% url drui disease.id %}
    

    Should be (if you are using django >= 1.5) or using {% load url from future %} in template:

    {% url "drui" disease.id %}
    

提交回复
热议问题