Reverse for ‘blog

    技术2023-11-08  106

    Reverse for ‘blog_detail’ with arguments ‘(’’,)’ not found. 1 pattern(s) tried: [‘blog\/(?P<blog_id>[^/]+)$’]

    <a href="{% url 'blog_detail' blog_id %}"> <h3>{{ blog.title }}</h3>

    改成

    <a href="{% url 'blog_detail' blog.id %}"> <h3>{{ blog.title }}</h3>
    Processed: 0.022, SQL: 9