Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

262
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!