Getting TemplateDoesNotExist for an included template that already exists

I have these template settings in the realestate/settings.py:

TEMPLATES = [
    {
        "BACKEND": "django.template.backends.django.DjangoTemplates",
        "DIRS": [BASE_DIR / "templates"],
        "APP_DIRS": True,
        "OPTIONS": {
            "context_processors": [
                "django.template.context_processors.request",
                "django.contrib.auth.context_processors.auth",
                "django.contrib.messages.context_processors.messages",
            ],
        },
    },
]

And this template partial that includes another template partial from different folder.

templates\partials\listings\detail\user_card.html:

{% load static %}
{# Card #}
<div class="card mb-3">
  <div class="row row-cols-sm-2 row-cols-md-1 g-0">
    {# Card image #}
    <div class="col">
      <img class="rounded-circle w-50 mx-auto my-3" src="{% static '/images/avatar-3814081_640.png' %}" alt="Avatar">
    </div>

    {# Card body #}
    <div class="col">
      <div class="card-body">
        <a class="text-decoration-none" href="{% url 'user-detail' user.id %}">
          <h2 class="card-title fw-bold">{{ user }}</h2>
        </a>
      </div>
    </div>
  </div>

  {% include "../../users/detail/footer" %} {# template already exists #}
</div>

I am getting TemplateDoesNotExist for partials/users/detail/footer, yet it already exists. Not even {% include "partials/users/detail/footer" %} worked.

The folder structure:
Templates folder structure

Вернуться на верх