hi
you can see the template-loader postmortem part of the error page that you uploaded
there is a list of paths that django expects to find your templates due to your settings file
in the settings file you can see the TEMPLATES list and find out where you should place your templates
for example if APPS_DIRS is True so django will search for templates in every apps directory alongside other paths
in general it is better to put your templates into a folder named same as your app that is inside another folder named templates in your app dir
for example app_dir/templates/app_name/template.html
On Monday, September 23, 2019 at 4:11:56 PM UTC+3:30, yerri swamy wrote:
Hi guys,By using templates folder i am not getting what i am expecting and i am getting error 'Template Does Not Exist' ,and also defaulty it's not coming templates variable in settings.py file,How do i slove this error please explain me any one.
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/f01203cf-4e87-4179-9dca-d3e19fc6d906%40googlegroups.com.
No comments:
Post a Comment