2👍
It should work if you use single quotation marks around the URL name. You also need to alter the opening bracket in your href
to a curly-brace {
:
<a href="{% url 'pregunta_detalle' pregunta.id %}">{{ pregunta.asunto }} ?</a>
^ ^ ^
Source:stackexchange.com