Re: Basic template inheritance question

2008-09-18 Thread Kenneth Gonsalves
On Thursday 18 Sep 2008 3:53:48 pm Daniele Procida wrote: >   {% block stylesheets %}{% endblock %} > > in the head, and place the stylesheets in a block in a template that > extends base.html. At any rate, this is what I gathered was the way to > do this. that is the way everyone does it - so i

Re: Basic template inheritance question

2008-09-18 Thread akonsu
wow, my thread has been hijacked :) thanks to those who replied to my original question. konstantin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-

Re: Basic template inheritance question

2008-09-18 Thread Daniele Procida
On Thu, Sep 18, 2008, Daniel Roseman <[EMAIL PROTECTED]> wrote: > >On Sep 18, 11:23 am, "Daniele Procida" <[EMAIL PROTECTED]> >wrote: >> Maybe if I explain what I'm doing it will help. >> >> Django CMS uses a base template, base.html. base.html is: >> >>

Re: Basic template inheritance question

2008-09-18 Thread Daniel Roseman
On Sep 18, 11:23 am, "Daniele Procida" <[EMAIL PROTECTED]> wrote: > Maybe if I explain what I'm doing it will help. > > Django CMS uses a base template, base.html. base.html is: > > > > What I would like is to devolve bits

Re: Basic template inheritance question

2008-09-18 Thread Daniele Procida
On Thu, Sep 18, 2008, Daniel Roseman <[EMAIL PROTECTED]> wrote: >> >> I have a base.html template. >> >> >> In it I've inserted: >> >> >>     {% block stylesheets %}{% endblock %} >> >> >> and in stylesheets.html in the same directory: >> >> >>     {% extends "base.html" %} >> >>         {% block

Re: Basic template inheritance question

2008-09-18 Thread Daniel Roseman
On Sep 18, 9:48 am, "Daniele Procida" <[EMAIL PROTECTED]> wrote: > On Thu, Sep 18, 2008, Daniel Roseman <[EMAIL PROTECTED]> wrote: > >On Sep 18, 8:50 am, "Daniele Procida" <[EMAIL PROTECTED]> > >wrote: > >> I have a base.html template. > > >> In it I've inserted: > > >>     {% block stylesheets %}

Re: Basic template inheritance question

2008-09-18 Thread Kenneth Gonsalves
On Thursday 18 Sep 2008 1:20:55 pm Daniele Procida wrote: >     {% extends "base.html" %} >         {% block stylesheets %} >             <--- my styles ---> >         {% endblock %} > > But the {% block stylesheets %} in stylesheets.html isn't filling in the > block in base.html - obviously I'm m

Re: Basic template inheritance question

2008-09-18 Thread Daniele Procida
On Thu, Sep 18, 2008, Daniel Roseman <[EMAIL PROTECTED]> wrote: >On Sep 18, 8:50 am, "Daniele Procida" <[EMAIL PROTECTED]> >wrote: >> I have a base.html template. >> >> In it I've inserted: >> >>     {% block stylesheets %}{% endblock %} >> >> and in stylesheets.html in the same directory: >> >>

Re: Basic template inheritance question

2008-09-18 Thread Daniel Roseman
On Sep 18, 8:50 am, "Daniele Procida" <[EMAIL PROTECTED]> wrote: > I have a base.html template. > > In it I've inserted: > >     {% block stylesheets %}{% endblock %} > > and in stylesheets.html in the same directory: > >     {% extends "base.html" %} >         {% block stylesheets %} >          

Basic template inheritance question

2008-09-18 Thread Daniele Procida
I have a base.html template. In it I've inserted: {% block stylesheets %}{% endblock %} and in stylesheets.html in the same directory: {% extends "base.html" %} {% block stylesheets %} <--- my styles ---> {% endblock %} But the {% block stylesheets %} in st