Skip to content

django1.5.1版本下报错在blog-list.html #2

Description

@ranlix

Reverse for 'delblog' with arguments '(4,)' and keyword arguments '{}' not found.

22              <div class="span2 offset7">
23                  <a href="{% url "delblog" blog.id %}" title="delete"><i class="icon-trash"></i></a>
24                  <a href="{% url "updateblog" blog.id %}" title="edit"><i class="icon-edit"></i></a>
25                  {% get_comment_count for blog as comment_count %}
26                  <a href="{% url "detailblog" blog.id %}#cmt" title="comment"><i class=" icon-comment"></i>{{ comment_count }}</a>
27              </div>

而删除line23 和line 25后,页面可以显示而不报错:

22           <div class="span2 offset7">
23
24               <a href="{% url "updateblog" blog.id %}" title="edit"><i class="icon-edit"></i></a>
25
26                <a href="{% url "detailblog" blog.id %}#cmt" title="comment"><i class=" icon-comment"></i>{{ comment_count }}</a>
 27          </div>

很奇怪,这个问题会是跟django的版本有关么

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions