Re: template error in html forms

2012-02-02 Thread TANYA
thanks, the template error went away but adding this code to views.py still gives search error. def search(request): error = False if 'q' in request.GET: q = request.GET['q'] if not q: error = True else: books = Book.objects.filter(title__i

Re: template error in html forms

2012-02-02 Thread TANYA
os.path.join(PROJECT_PATH, 'templates'), solved the error but the old error with search is still there. On Wed, Feb 1, 2012 at 3:00 PM, yati sagade wrote: > I've never run in to a TemplateError for anything other than what I > pointed out - maybe in the settings module it is ".../templates" an

Re: template error in html forms

2012-02-01 Thread Joel Goldstick
On Wed, Feb 1, 2012 at 10:00 AM, yati sagade wrote: > I've never run in to a TemplateError for anything other than what I > pointed out - maybe in the settings module it is ".../templates" and the > name of the directory is "template" (note the 's' in the end) or the other > way round. Anyway, ch

Re: template error in html forms

2012-02-01 Thread yati sagade
I've never run in to a TemplateError for anything other than what I pointed out - maybe in the settings module it is ".../templates" and the name of the directory is "template" (note the 's' in the end) or the other way round. Anyway, check for any misspelling in the template name itself - or wheth

Re: template error in html forms

2012-02-01 Thread TANYA
yes, the path is already there. Maybe the problem is either in views.py or url.py file if changed it gives different error, but i dont know what to look for in those two files. On Wed, Feb 1, 2012 at 2:40 PM, yati sagade wrote: > in settings.py, in the TEMPLATE_DIRS setting, add the absolute pat

Re: template error in html forms

2012-02-01 Thread yati sagade
in settings.py, in the TEMPLATE_DIRS setting, add the absolute path to your templates directory - something like "/path/to/project/dir/template". This MUST be an absolute path. And if your modifying this setting for the first time, be sure to leave a comma (,) in the end of that path (Sorry if you

Re: template error in html forms

2012-02-01 Thread TANYA
the installed apps has 'mysite.books', in the path and the html files are in a directory under mysite project directory. Is that correct? On Wed, Feb 1, 2012 at 12:06 PM, Ankit Rai wrote: > Please check your template path in settings.py. > > > > > On Wed, Feb 1, 2012 at 5:29 PM, TANYA wrot