Reverse for 'login' not found. 'login' is not a valid view function or pattern name.

@jlgimeno how can i solve this error.

Reverse for 'blogdetail' with no arguments not found. 1 pattern(s) tried: ['blogdetail/(?P<slug>[^/]+)/$']

Here is the app URLs.

urlpatterns = [
    path("blog", blog, name="blog"),
    path("blogdetail/<slug>/", blogdetail, name="blogdetail")
]

Here is the project URLs

urlpatterns = [
    path('admin/', admin.site.urls),
    path("", include("bonnie.urls")),
    path("", include("Blog.urls"))
]

Here is the template

<!-- Blog Item -->
            {% for blog in blogs %}
            <div class="blog-item padd-15">
                <div class="blog-item__inner">
                    <div class="blog-item__inner__img">
                        <img src="/media/{{blog.image}}" alt="">
                    </div>
                    <div class="blog-item__inner__info">
                        <h4 class="blog-title">{{blog.title}}</h4>
                        <span>{{blog.created_at}}</span>
                        <p class="blog-desc">{{blog.content | safe}}</p>
                        <p class="blog-tags">
                            <a href="{% url 'blogdetail' blog.slug %}" class="btn">
                                Read More
                            </a>
                        </p>
                    </div>
                </div>
            </div>
            {% endfor %}
            <!-- Blog Item End -->