{% extends "base.html" %}

{% block content %}
<div>
<h1>Current users</h1>
{% for user in users %}
  <a href="{% url view_profile username=user.username %}">{{ user.username }}</a>
{% endfor%}
</div>
{% endblock content %}

{% extends "base.html" %}

{% block content %}
<div>
<h1>Current users</h1>
<ul>
{% for user in users %}
  <li><a href="{% url view_profile username=user.username %}">{{ user.username }}</a></li>
{% endfor%}
</ul>
</div>
{% endblock content %}

Put user profile list in a ul.
Put user profile list in a ul.
