Thanks Nuno this fixed the issue.
On 02/06/2010 12:17 م, Nuno Maltez wrote:
Well, if you're trying to render a template : "posts/post_list.html",
the post_list.html file should live inside "posts" directory inside of
your "templates" directory :
templates/posts/post_list.html
Don't mix html and python files in the same dir.
Nuno
On Wed, Jun 2, 2010 at 4:44 AM, M. Bashir Al-Noimi<mbno...@gmx.com> wrote:
Hi folks,
I'm trying to build my first blog by python/django but during writing it I
faced a path problem so django couldn't recognize template path.
For that the debugger gave me the following log (you can see full log and the
whole project in the attachment), although I added the absolute template path
to TEMPLATE_DIRS tuple. Could you please tell me what's wrong?
PS
I still newbie guys ;-)
--log--
TemplateDoesNotExist at /
posts/post_list.html
Request Method: GET
Request URL: http://127.0.0.1:8000/
Exception Type: TemplateDoesNotExist
Exception Value:
posts/post_list.html
Exception Location: C:\Python26\lib\site-packages\django\template\loader.py in
find_template_source, line 74
Python Executable: C:\Python26\python.exe
Python Version: 2.6.3
Python Path: ['Q:\\Apps\\Common\\eclipse-py\\workspace\\MyBlog\\src\\MyBlog',
'Q:\\Apps\\Common\\eclipse-py\\workspace\\MyBlog\\src',
'Q:\\Apps\\Common\\eclipse-py\\workspace\\MyBlog\\templates', 'C:\\Python26',
'C:\\Python26\\DLLs', 'C:\\Python26\\lib', 'C:\\Python26\\lib\\lib-tk',
'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\site-packages',
'C:\\WINDOWS\\system32\\python26.zip']
Server time: Mon, 31 May 2010 15:45:49 +0200
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
--
Best Regards
Muhammad Bashir Al-Noimi
My Blog: http://mbnoimi.net
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.