я где-то допустил ошибка и не могу ее найти, при нажатии кнопки меня должно перебрасывать как url : buy меня на news(его я удалил)
html
% load static %}
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
<script src="https://kit.fontawesome.com/c4eef2bf3e.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="{% static 'main/css/main.css' %}">
</head>
<body>
<aside>
<img src="{% static 'main/img/reshot-icon-share-ZBSECWVM5Y.svg' %}" alt="logo">
<span class="logo">SellGroup</span>
<h3>Navigation</h3>
<ul>
<a href="{% url 'home' %}"><li><i class="fas fa-home"></i>Main</li></a>
<a href="{% url 'about' %}"><li><i class="fa-regular fa-address-card"></i>About us</li></a>
<a href="{% url 'buy/laptop' %}"><li><i class="fa-solid fa-shop"></i>Buy</li></a>
</ul>
</aside>
<main>
{% block content %}
{% endblock %}
</main>
</body>
</html>
my website urls
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('main.urls')),
path('buy/', include('buy.urls'))
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
next directory urls
from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='home'),
path('about/', views.about, name='about')
]
last part urls
from django.urls import path
from .views import laptop_list
urlpatterns = [
path('laptop/', laptop_list, name='laptop_list'),
]