Re: template inheritance problem

2010-12-21 Thread Harbhag Singh Sohal
> When you pass apples, you cannot expect oranges :) Well, I got your point. I just ignored the whole point of inheritance and was expecting some magic to happen. -- Harbhag Singh Sohal http://harbhag.wordpress.com -- You received this message because you are subscribed to the Google Groups

Re: template inheritance problem

2010-12-21 Thread Venkatraman S
Some effort in reading the docs always help. Please spend some time reading the DjangoBook and experimenting with it. For your current Q, did you try writing the code and reading http://www.djangobook.com/en/1.0/chapter04/ properly? Do you understand what you are doing in your view - as in, do you

Re: Template inheritance problem

2008-10-02 Thread tapautler
Looking at the comments in that ticket, I think you may need a redesign - sounds like conditional blocks weren't ever "meant" to be supported. I've done something similar using a template include at the point that you are putting your select block. I try to use includes sparingly but sometimes it

Re: Template inheritance problem

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 1:31 PM, FC <[EMAIL PROTECTED]> wrote: > > Ok, I've found out this: > > http://code.djangoproject.com/ticket/6510 > Block inheritance works fine within {% if %} tags, but not within {% > ifequal %} or {% ifnotequal %} tags, as illustrated by the code below. > > I guess that

Re: Template inheritance problem

2008-10-01 Thread FC
Ok, I've found out this: http://code.djangoproject.com/ticket/6510 Block inheritance works fine within {% if %} tags, but not within {% ifequal %} or {% ifnotequal %} tags, as illustrated by the code below. I guess that is the problem. Someone knows if this issue is going to be resolved or if I

Re: Template inheritance problem

2008-10-01 Thread FC
On Oct 1, 12:58 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Wed, Oct 1, 2008 at 11:03 AM, FC <[EMAIL PROTECTED]> wrote: > > viaje_sg_a.html provides the content for a block named "form_a" but no block > of that name is declared in the templates being extended.  You need to > declare that bl

Re: Template inheritance problem

2008-10-01 Thread Karen Tracey
On Wed, Oct 1, 2008 at 11:03 AM, FC <[EMAIL PROTECTED]> wrote: > > Hi, I've made some changes to my templates and something is broken but > I just can't find out why. > I have a base.html template with my site basic structure. Then a > viaje.html template which displays an object from the database

Re: Template inheritance problem

2006-01-30 Thread PythonistL
Adrian, Thank you for your reply. I still have problems with template inheritance Can you please help me with the following? I have the Index1.html ##Index1.html# {% extends "board/test" %} {% block title %}Tittle from Index.html {% endblock %} This is a text from Ind

Re: Template inheritance problem

2006-01-30 Thread PythonistL
Adrian,thank you for your reply. Yes, they both are in the same (board) directory. So, what shall I try to find out the reason why it doesn't work? Thank you Regards, L.

Re: Template inheritance problem

2006-01-30 Thread Adrian Holovaty
On 1/30/06, PythonistL <[EMAIL PROTECTED]> wrote: > I have the Index1.html > ##Index1.html# > {% extends "board/test" %} > {% block title %}Tittle from Index.html {% endblock %} > This is a text from Index1.html > {%block mine%}Hello from Index1{%endblock%} > Text at

Re: Template inheritance problem

2006-01-28 Thread Adrian Holovaty
On 1/28/06, PythonistL <[EMAIL PROTECTED]> wrote: > But it does not work. Can anoyne explain why?Thanks. Are both Index.html and Child.html in a root-level template directory? For example, if your TEMPLATE_DIRS is set to ['/home/templates'], are they both in /home/templates, rather than something