rev

Leonard

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


i need to solve Django TemplateSyntaxError at
(07 Comments)
rev

Mahmudul

put a space after extends tag

rev

Raghib

{% extends 'base.html' %}

rev

Rich

igure 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

rev

Andreas

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

rev

Thin

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

rev

User

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

rev

suraj

Extends space base.html

English today is not an art to be mastered it's just a tool to use to get a result