Tuesday, June 26, 2018

Re: Where setting up templates directory in settings.py

you could try to create "blog" directory in your templates folder and put the date.html in there...
not sure thou as I am very beginner ;)

On Tuesday, 26 June 2018 12:02:45 UTC+2, emmanuel wyckens wrote:
Hello,

I didn't solve my issue on adding the templates directories in setting.py. I always the same error :
See my project in zip  file

Thanks in advance

Emmanuel

TemplateDoesNotExist at /blog/date

blog/date.html
Request Method: GET
Request URL: http://127.0.0.1:8000/blog/date
Django Version: 1.11.11
Exception Type: TemplateDoesNotExist
Exception Value:
blog/date.html
Exception Location: /usr/lib/python2.7/dist-packages/django/template/loader.py in get_template, line 25
Python Executable: /usr/bin/python
Python Version: 2.7.15
Python Path:
['/home/manu/crepes_bretonnes',   '/usr/lib/python2.7',   '/usr/lib/python2.7/plat-x86_64-linux-gnu',   '/usr/lib/python2.7/lib-tk',   '/usr/lib/python2.7/lib-old',   '/usr/lib/python2.7/lib-dynload',   '/usr/local/lib/python2.7/dist-packages',   '/usr/lib/python2.7/dist-packages']

--
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/cd3c6cb4-042c-461d-92ee-0d2f48b15add%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment