В моем html-шаблоне тег href не работает
Я разрабатываю проект с использованием django.Но в html шаблоне функция href не работает.Когда я захожу в область, ссылка отображается внизу страницы.Но url не работает.Не только django url.Когда я пишу там https://www.google.com,again он не работает.Как я могу это исправить?
index.html
<div class="chat-users-list" style="height: 112%;">
<div class="chat-scroll" >
{% for user in users %}
<a class="media
{% if forloop.counter0 == 0 %}
read-chat active
{% endif %}
" href="{% url 'startChat' user.slug %}" >
<div class="media-img-wrap">
<div class="avatar avatar-away">
<img src="{% static 'assets/img/patients/patient.jpg' %}" alt="User Image" class="avatar-img rounded-circle">
</div>
</div>
<div class="media-body">
<div>
<div class="user-name">{{user.get_full_name}}</div>
<div class="user-last-chat">Hey, How are you?</div>
</div>
<div>
<div class="last-chat-time block">2 min</div>
<div class="badge badge-success badge-pill">15</div>
</div>
</div>
</a>
{% endfor %}
</div>
</div>
style.css
.chat-window .chat-scroll {
min-height: 300px;
max-height: calc(100vh - 224px);
overflow-y: auto;
}
.chat-cont-left .chat-users-list {
background-color: #fff;
}
.chat-cont-left .chat-users-list a.media {
border-bottom: 1px solid #f0f0f0;
padding: 10px 15px;
transition: all 0.2s ease 0s;
}