Monday, October 10, 2022

Re: error extending base template

Make sure the template directory is located in the app directory or if it is in a different directory, ensure the location is specified at the template section  in the settings.py file

On Mon, Oct 10, 2022 at 3:11 PM Namanya Daniel <dnamanya.daniel@gmail.com> wrote:
hello, someone help me out. am new to django and i face an issue with templates extending base.html

i have created a base.html template which is basically a skeleton for other templates, they are all in templates/another directory but when i use {%extends 'base.html'%}  I get this error... thanks in advance


Request Method:
GET
Request URL:
http://127.0.0.1:8000/
Django Version:
4.1.2
Exception Type:
TemplateDoesNotExist
Exception Value:
base.html

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b46cebb4-fca2-49b8-a836-309a2c4a4024n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABFHQYwKkXHT%3DjLQYshKCV3q913_Q8dqWmFXi4477eDXLz0zmg%40mail.gmail.com.

No comments:

Post a Comment