Django reverse error: NoReverseMatch

前端 未结 1 973
暗喜
暗喜 2021-02-12 15:30

I\'ve looked at a lot of different posts, but they\'re all either working with a different version of django or don\'t seem to work. Here is what I\'m trying to do:

urls

相关标签:
1条回答
  • 2021-02-12 15:59

    You've used a namespace when including the URLs, so you probably need to use "blog:postdetail" to reverse it.

    0 讨论(0)
提交回复
热议问题