0

I have a layout.jade file that contains just a basic skeleton:

html
head
body
    header
    block content

    footer

In the same directory, I also have a mypage.jade file that contains

extends layout
block content
    p Hello World

Rendering layout.jade as a response does just fine. However, when I try and render mypage.jade it doesn't go through, and I get a TemplateDoesNotExist error. What gives?

neptune
  • 1,380
  • 2
  • 17
  • 25

1 Answers1

0

Turns out you have to add the explicit directory to TEMPLATE_DIRS in the Django settings.py, and everything works

neptune
  • 1,380
  • 2
  • 17
  • 25