The server is working fine, however while using extend for this 'home.html' file unable to link the template :
In 'home.html':
{ % extends "/template1/personal/header.html" % } While loading localhost: Django tried loading these templates, in this order:
`Using engine django:
1) Check what is in TEMPLATE_DIRS Variable in settings.py. That is the folder Django looks up in every app in order to find your template.
2) Try remove the leading slash:
{% extends 'template1/personal/header.html' %}
3) if template1 is in TEMPLATE_DIRS, then 'app/template.html' would be enough
{% extends 'personal/header.html' %}
Read on:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.