1👍
Template tags are wrapped in a {% … %}
, not <% … %>
You thus implement this with:
{% extends "base.html" %}
{% block page_title %} Challenges {% endblock %}
{% block content %}
<ul>
{% for month in months%}
<li> <a href="{% url 'month-challenge' month %}">{{month|title}} </a></li>
{% endfor %}
</ul>
{% endblock %}
Source:stackexchange.com