Reverse for 'detail' with arguments '(1,)' not found. 1 pattern(s) tried: ['blog/article/<int:pk>/']
- 阅读更多 关于 Reverse for 'detail' with arguments '(1,)' not found. 1 pattern(s) tried: ['blog/article//']
问题 I created a simple article/blog app. I am having problem in detail view. I created a list view of articles and also created a detail view if someone clicks on one of the acrticle , it takes the to detail view of article . But when i click on one of the articles , i am getting above error stated in the title. It is also pointing the error location to this code {% url "detail" post.id %} which u can see in 44th or 45th line in Error page i posted in the last. I tried lots of thing , none worked