Last modified: Jan 10, 2023 By Alexander Williams
i need to solve Django TemplateSyntaxError at

Leonard
hello Devs i need to solve this puzzle ... any idea?

(07 Comments)

Mahmudul
1put a space after extends tag

Raghib
2{% extends 'base.html' %}

Rich
2igure out, where this base.html actually exists, and if its present inside an app folder, then you need to give app/base.html as a path, if not check your templates settings in settings.py file

Andreas
2base.html is in the wrong path. U need to setup ur static files. Django documentation has accurate info about the subject.

Thin
2
add dirs properties to TEMPLATES in file settings.py:
'DIRS': [os.path.join(BASE_DIR, 'templates')],
templates folder contain file base.html

User
0You have to add base.html to view.py and set the path in static.py

suraj
0Extends space base.html