Path issue (TemplateDoesNotExist)
M. Bashir Al-Noimi
mbnoimi at gmx.com
Tue Jun 1 11:22:19 EDT 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100601/775d2dee/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MyBlogProject.zip
Type: application/x-zip-compressed
Size: 15115 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20100601/775d2dee/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debugger_log.zip
Type: application/x-zip-compressed
Size: 8405 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20100601/775d2dee/attachment-0001.bin>
More information about the Python-list
mailing list