Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

264
Visualizações
Django template not found but file exist

I have some third-part library, templates from that library is diplayed by default.

I want to replace layout template, from which all other start inheritance.

So, in my local app I create new layout.html file, which contents {% extends 'library:layout.html' %}

But in that case I've got TemplateDoesNotExist at /test-url/ test.html

But still Template-loader postmortem display, that it can find file:

Django tried loading these templates, in this order:
Using loader django.template.loaders.filesystem.Loader:
/path/to/app/templates/test.html (File does not exist)

Using loader django.template.loaders.app_directories.Loader:
/path/to/library/app1/templates/test.html (File does not exist)
/path/to/library/app2/templates/test.html (File does not exist)
/path/to/library/app3/templates/test.html (File exists)

So, in library app3 Django found template, but for some reason do not use it. Can you help with this issue?

Thanks.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Make sure that there isn't another missing template that is causing the error.

Your extends tag looks wrong. I would expect to see library/layout.html, not library:layout.html

{% extends 'library/layout.html' %}
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda