Make sure that the TEMPLATE_DIRS is set in your settings.py if you are
putting your templates in a folder other than your_app/templates.

--
Gladys
http://bixly.com


On Mar 13, 7:48 pm, Vijay <prvreddy2...@gmail.com> wrote:
> When i am practicing Django in chapter 7(forms), I am getting
> 'TemplateDoesNotExist' error.Here's the error details
>
> TemplateDoesNotExist at /search-form/
>
> search_form.html
>
> Request Method:         GET
> Request URL:    http://127.0.0.1:8000/search-form/
> Django Version:         1.2.5
> Exception Type:         TemplateDoesNotExist
> Exception Value:
>
> search_form.html
>
> Exception Location:     /usr/local/lib/python2.6/dist-packages/django/
> template/loader.py in find_template, line 138
> Python Executable:      /usr/bin/python
> Python Version:         2.6.4
> Python Path:    ['/home/prvr/Desktop/djcode/mysite', '/usr/lib/
> python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-
> tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/
> usr/lib/python2.6/dist-packages', '/usr/lib/python2.6/dist-packages/
> PIL', '/usr/lib/python2.6/dist-packages/gst-0.10', '/usr/lib/pymodules/
> python2.6', '/usr/lib/python2.6/dist-packages/gtk-2.0', '/usr/lib/
> pymodules/python2.6/gtk-2.0', '/usr/local/lib/python2.6/dist-
> packages']
> Server time:    Sun, 13 Mar 2011 05:21:16 -0500
> Template-loader postmortem
>
> Django tried loading these templates, in this order:
>
>     * Using loader django.template.loaders.filesystem.Loader:
>     * Using loader django.template.loaders.app_directories.Loader:

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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.

Reply via email to