R
R
rjunovskii2022-02-06 02:01:07
Django
rjunovskii, 2022-02-06 02:01:07

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 %}


Error when trying to address this link, which is passed in this template:

61ff019cdde49668458695.png

I have no idea what I'm doing wrong ... help (

UPD. Half an hour later the problem disappeared by itself, I didn’t touch anything at all, I didn’t even restart the site, and initially repeated restarts of ide and the site localhost itself didn't help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question