Проблема загрузки url из представлений и url в django

Я создаю веб-страницу на основе пользовательского шаблона bootstrap, свободно доступного на GitHub. Я пытался подключить Django к бэкэнду. Я столкнулся с проблемой использования урлов и представлений. Я все прекрасно описал, но получаю сообщение о том, что страница не найдена

файлurls.py

from django.urls import path, include
from django.conf.urls.static import static
from . import views
urlpatterns = [
    path('', views.homepage, name='homepage'),
    path('publications', views.publications, name='publications'),
    path('alumni', views.alumni, name='alumni'),
    path('contact', views.contact, name='contact'),
    path('joinus', views.joinus, name='joinus'),
    path('phdstudents', views.phdstudents, name='phdstudents'),
    path('pi', views.pi, name='pi'),
    path('project1', views.project1, name='project1'),
    path('research', views.research, name='research'),
    path('researchers',views.researchers, name='researchers'),
    path('shiladit', views.shiladit, name='shiladit'),
    path('students', views.students, name='students'),
    path('team', views.students, name='team'),
]

views.py

from django.shortcuts import render
def homepage(request):
    return render(request, 'lab/index.html')
def publications(request):
    return render(request, 'lab/publications.html')
def alumni(request):
    return render(request, 'lab/alumni.html')
def contact(request):
    return render(request, 'lab/contact.html')
def joinus(request):
    return render(request, 'joinus.html')
def phdstudents(request):
    return render(request, 'phd_students.html')
def pi(request):
    return render(request, 'lab/pi.html')
def project1(request):
    return render(request, 'lab/project1.html')
def publications(request):
    return render(request, 'lab/publications.html')
def research(request):
    return render(request, 'lab/research.html')
def researchers(request):
    return render(request, 'researchers.html')

когда я нажимаю на navbar для перенаправления страницы, я получаю ошибку. но когда я даю url, он загружается, как это исправить. enter image description here

enter image description here


*В шаблоне (Html):*
  • Удаление

<ul>
  <li><a href="research.html">Research</a></li>
</ul>

  • Попробуйте это :

    <ul>
      <li><a href="/research/">Research</a></li>
    </ul>

Вернуться на верх