Re: Template extending problem

2006-12-09 Thread Don Arbow
On Dec 9, 2006, at 10:56 AM, mezhaka wrote: > > try > {% extends "/blog/base.html" %} > instead of > {% extends "/blog/base" %} In addition, he should remove the leading '/' from the path in the extends clause. If you code a leading slash, os.path.join() ignores the template path. Don -

Re: Template extending problem

2006-12-09 Thread Kai Kuehne
Hi Baurzhan, On 12/10/06, Baurzhan Ismagulov <[EMAIL PROTECTED]> wrote: > Hello Kai, > > On Sun, Dec 10, 2006 at 12:23:09AM +0100, Kai Kuehne wrote: > > > {% extends "/blog/base" %} > > Doesn't work. > > {% extends "blog/base.html" %} works for me. Ok, it was the leading slash, thanks! :) > Wi

Re: Template extending problem

2006-12-09 Thread Baurzhan Ismagulov
Hello Kai, On Sun, Dec 10, 2006 at 12:23:09AM +0100, Kai Kuehne wrote: > > {% extends "/blog/base" %} > Doesn't work. {% extends "blog/base.html" %} works for me. With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/ --~--~-~--~~~---~--~~ You receiv

Re: Template extending problem

2006-12-09 Thread Kai Kuehne
Sorry, forget to paste the blog/base.html. So, here it is: {% load comments.comments %} http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml";> My django blog: {% block title %}Generic Page{% endblock %} {% block extrahead %}{%

Re: Template extending problem

2006-12-09 Thread Kai Kuehne
Hi, On 12/9/06, mezhaka <[EMAIL PROTECTED]> wrote: > > try > {% extends "/blog/base.html" %} > instead of > {% extends "/blog/base" %} Doesn't work. Kai --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Template extending problem

2006-12-09 Thread mezhaka
try {% extends "/blog/base.html" %} instead of {% extends "/blog/base" %} by the way what does the blog/base.html looks like? On Dec 9, 8:10 pm, "Kai Kuehne" <[EMAIL PROTECTED]> wrote: > Hi list! > I've got a problem: > > settings.py: > TEMPLATE_DIRS = ( '/home/kai/Projekte/kaikuehne/template

Template extending problem

2006-12-09 Thread Kai Kuehne
Hi list! I've got a problem: settings.py: TEMPLATE_DIRS = ( '/home/kai/Projekte/kaikuehne/templates' ) home.html: {% extends "/blog/base" %} I get the following error: "Template '/blog/base' cannot be extended, because it doesn't exist" But, the file does exist: $ ls -l /home/