Where setting up templates directory in settings.py

28 views
Skip to first unread message

emmanuel wyckens

unread,
Jun 26, 2018, 6:02:45 AM6/26/18
to Django users
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']
crepes_bretonnes.zip

Oskar Artur

unread,
Jun 26, 2018, 11:15:11 AM6/26/18
to Django users
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 ;)

Mikhailo Keda

unread,
Jun 26, 2018, 12:57:07 PM6/26/18
to Django users
you can use bitbucket or something similar for project sharing

 
Reply all
Reply to author
Forward
0 new messages