Answer the question
In order to leave comments, you need to log in
The current path, { c.get_absolue_url}}, didn't match any of these. I do not understand why how to fix it?
I'm taking a video course in django. Actually the problem: when I wrote the .html template, I made a typo, and even after I corrected this typo, the error still refers to this problematic line, which, in fact, is no longer in the file,
this code fragment from base.html:
{% for c in cats %}
{% if c.pk == cat_selected %}
<li class="selected">{{c.name}}</li>
{% else %}
<li><a href="{{ c.get_absolute_url }}">{{c.name}}</a></li>
{% endif %}
{% endfor %}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question