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
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
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
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
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
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
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
7 matches
Mail list logo