Re: Template inheritance not working

2022-11-19 Thread Chukwudi Onwusa
You can WhatsApp me on 08125409314, screenshot short your error page and send, together with with inherited template and your parent template. On Sat, Nov 19, 2022, 18:10 Alec Delaney <96alecpatr...@gmail.com> wrote: > Okay, Cause I am looking for another example for template in

Re: Template inheritance not working

2022-11-19 Thread subin
template contains the default content, and blocks with default >>>> contents in it. Then, in the child template, you can override those blocks. >>>> >>>> El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> >>>> escribió: >>>> >>

Re: Template inheritance not working

2022-11-19 Thread subin
gt;>>> The base template contains the default content, and blocks with default >>>> contents in it. Then, in the child template, you can override those blocks. >>>> >>>> El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> >>>>

Re: Template inheritance not working

2022-11-19 Thread subin
cks with default >>>> contents in it. Then, in the child template, you can override those blocks. >>>> >>>> El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> >>>> escribió: >>>> >>>>> Hello. How are you

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
you dont have zoom? On Sat, Nov 19, 2022 at 12:09 PM Alec Delaney <96alecpatr...@gmail.com> wrote: > Okay, Cause I am looking for another example for template inheritance > > > On Sat, Nov 19, 2022 at 11:54 AM Chukwudi Onwusa > wrote: > >> On WhatsApp >>

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
Okay, Cause I am looking for another example for template inheritance On Sat, Nov 19, 2022 at 11:54 AM Chukwudi Onwusa wrote: > On WhatsApp > > On Sat, Nov 19, 2022, 17:14 Alec Delaney <96alecpatr...@gmail.com> wrote: > >> Hello, would you be available for zoom? >&

Re: Template inheritance not working

2022-11-19 Thread Chukwudi Onwusa
ndoval < >> davidemanuelsando...@gmail.com> wrote: >> >>> The base template contains the default content, and blocks with default >>> contents in it. Then, in the child template, you can override those blocks. >>> >>> El vie, 18 nov 2022 17:54, Alec

Re: Template inheritance not working

2022-11-19 Thread Alec Delaney
in the child template, you can override those blocks. >> >> El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> >> escribió: >> >>> Hello. How are you? Can I see another example of template inheritance? >>> >>> On Mon,

Re: Template inheritance not working

2022-11-18 Thread Chukwudi Onwusa
ndo...@gmail.com> wrote: > The base template contains the default content, and blocks with default > contents in it. Then, in the child template, you can override those blocks. > > El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> > escribió: > >> H

Re: Template inheritance not working

2022-11-18 Thread David Emanuel Sandoval
The base template contains the default content, and blocks with default contents in it. Then, in the child template, you can override those blocks. El vie, 18 nov 2022 17:54, Alec Delaney <96alecpatr...@gmail.com> escribió: > Hello. How are you? Can I see another example of template in

Re: Template inheritance not working

2022-11-18 Thread Alec Delaney
Hello. How are you? Can I see another example of template inheritance? On Mon, Oct 31, 2022 at 2:34 PM Ammar Mohammed wrote: > Hello dear > There is a little mistake in your code : > You should put the {%block block_name %} in your base template with no > code and the put the c

Re: Template inheritance not working

2022-11-08 Thread Alec Delaney
Thank you! On Mon, Oct 31, 2022 at 2:34 PM Ammar Mohammed wrote: > Hello dear > There is a little mistake in your code : > You should put the {%block block_name %} in your base template with no > code and the put the code you want to be displayed in your child template > file > Here is an

Re: Template inheritance not working

2022-11-02 Thread peteru mimo
Your template inheritance cannot be index.html make it base.html and put whatever you want to be display in all pages on it then extends it in index page and other page On Wed, Nov 2, 2022 at 10:26 AM FLAVIEN HERI wrote: > can it be the problem of the first block content which is empty

Re: Template inheritance not working

2022-11-02 Thread FLAVIEN HERI
can it be the problem of the first block content which is empty.in index.html, try to delete the empty block content, leave the second one and see what happen On 10/31/22, Ammar Mohammed wrote: > Hello dear > There is a little mistake in your code : > You should put the {%block block_name %} in

Re: Template inheritance not working

2022-10-31 Thread Ammar Mohammed
Hello dear There is a little mistake in your code : You should put the {%block block_name %} in your base template with no code and the put the code you want to be displayed in your child template file Here is an example : // file.html : {% extends "index.html" %} {% block content %} Hello,

Template inheritance not working

2022-10-31 Thread Alec Delaney
I have been trying to get my templates to work but they have been ineffective. here is my code: {% extends "index.html" %} Document {% block content %} {% endblock %} //index.html: Document {% block content %} Hello, this is a

Re: Template inheritance with dynamic content

2020-11-16 Thread Tristania W
Thanks, David, for answering the following-up question. I have figured out the problem. The "zip" object works with "include" as you have anticipated. The issue that I found is that, in my view, I am zipping the lists in a different function (called "*def **give_me_zip*"). This function

Re: Template inheritance with dynamic content

2020-11-14 Thread Tristania W
Hi, To follow up, when I tried the following: * {% include "child_template.html" with zip_list=zip_list%}* if the variable *zip_list* is a zip object, defined as following in the view, * zip_list= zip (list1, list2, list3)* the "*include*" does not work. But if I pass any other normal variable

Re: Template inheritance with dynamic content

2020-11-13 Thread David Nugent
You can achieve what you are looking for using the include directive. Just have your parent and child include the same block and use with… phrase to override variables within the included template. Regards, David On

Template inheritance with dynamic content

2020-11-13 Thread Tristania W
Is it possible to make one sub-template inherit a div with dynamic content from an upper level template? For eg., Template2 extends Template1. Within Template1, there is a div XXX that depends on a variable {{ var1 }}. This variable is passed to the view *def view1*, which renders Template 1.

Documentation on Template Inheritance

2018-07-29 Thread Tehem
The Template Inheritance documentation could use some more guidelines. First, It's not indicated in the Django Documentation that the *child *template is the actual view to be loaded, contrary to what its name would imply : Template inheritance allows you to build a base “skeleton” template

Re: Could not parse the remainder template inheritance

2016-01-02 Thread James Schneider
On Jan 2, 2016 8:11 AM, "Matthew" wrote: > > Actually it turned out this works!! My TextEdit app was being finnicky and made me re-write the entire code instead of just the quotation marks. Thanks for the help! > That seems a bit odd. I can see why just turning off the smart

Re: Could not parse the remainder template inheritance

2016-01-02 Thread François Schiettecatte
And if you like it you should just buy BBEdit from BareBones, been using it for years, it’s great. François > On Jan 2, 2016, at 11:13 AM, Lee Hinde wrote: > > If you’re just getting your feet wet and don’t want to invest in an > editor/IDE just yet, try TextWrangler: >

Re: Could not parse the remainder template inheritance

2016-01-02 Thread Lee Hinde
If you’re just getting your feet wet and don’t want to invest in an editor/IDE just yet, try TextWrangler: http://www.barebones.com/products/textwrangler/ It’s free and won’t get in your way. > On Jan 2, 2016, at 8:11 AM, Matthew

Re: Could not parse the remainder template inheritance

2016-01-02 Thread Matthew
Actually it turned out this works!! My TextEdit app was being finnicky and made me re-write the entire code instead of just the quotation marks. Thanks for the help! On Saturday, January 2, 2016 at 10:52:22 AM UTC-5, Matthew wrote: > > Hi James, > > I turned smart quotes off and am still having

Re: Could not parse the remainder template inheritance

2016-01-02 Thread Matthew
Hi James, I turned smart quotes off and am still having the error. I wasn't aware that could cause future errors though, so thanks for the heads up! On Saturday, January 2, 2016 at 12:44:22 AM UTC-5, James Schneider wrote: > > > On Jan 1, 2016 8:08 PM, "Matthew" wrote: > >

Re: Could not parse the remainder template inheritance

2016-01-01 Thread James Schneider
On Jan 1, 2016 8:08 PM, "Matthew" wrote: > > Hi all, > > I'm working through the masteringdjango book, and am struggling in the Templates area. > > I created a base.html base template, and am attempting to include a child template. > > This is the child template: > > {% extends

Could not parse the remainder template inheritance

2016-01-01 Thread Matthew
Hi all, I'm working through the masteringdjango book, and am struggling in the Templates area. I created a base.html base template, and am attempting to include a child template. This is the child template: {% extends “base.html” %} {% block title %}The current time{% endblock %} {% block

Re: [Bulk] Re: Template Inheritance doubt

2013-05-21 Thread Parin Porecha
i wanted :) >> >> Thanks! >> >> >> On Sun, May 19, 2013 at 10:50 PM, Dow Street <dows...@prodigy.net> wrote: >> >>> Hi. I'm not sure, but we may be using the terms 'parent' and 'child' >>> differently (i.e. what you're calling a c

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Sam Solomon
te: > >> Hi. I'm not sure, but we may be using the terms 'parent' and 'child' >> differently (i.e. what you're calling a child I'm calling a parent?). I >> have only used django template inheritance where a given template file has >> at most one {% extends %}

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Parin Porecha
parent' and 'child' > differently (i.e. what you're calling a child I'm calling a parent?). I > have only used django template inheritance where a given template file has > at most one {% extends %} tag in it - that is what I am referring to when I > say 'has at most one parent'. However, the

Re: [Bulk] Re: Template Inheritance doubt

2013-05-20 Thread Dow Street
Hi. I'm not sure, but we may be using the terms 'parent' and 'child' differently (i.e. what you're calling a child I'm calling a parent?). I have only used django template inheritance where a given template file has at most one {% extends %} tag in it - that is what I am referring to when I

Re: Template Inheritance doubt

2013-05-19 Thread Parin Porecha
SidebarView - you get it :-), but {% block sidebar %} section be blank... > > суббота, 18 мая 2013 г., 12:14:37 UTC+3 пользователь Parin Porecha написал: > >> Hi, >> >> I have just started to learn Django's template inheritance and I am stuck >> due to this problem -

Re: Template Inheritance doubt

2013-05-18 Thread Artem Zinoviev
- you get it :-), but {% block sidebar %} section be blank... суббота, 18 мая 2013 г., 12:14:37 UTC+3 пользователь Parin Porecha написал: > > Hi, > > I have just started to learn Django's template inheritance and I am stuck > due to this problem - > In my application's 'base.htm

Re: Template Inheritance doubt

2013-05-18 Thread Dow Street
On May 18, 2013, at 2:14 AM, Parin Porecha <parinpore...@gmail.com> wrote: > Hi, > > I have just started to learn Django's template inheritance and I am stuck due > to this problem - > In my application's 'base.html', I have defined two blocks - > {% block top

Template Inheritance doubt

2013-05-18 Thread Parin Porecha
Hi, I have just started to learn Django's template inheritance and I am stuck due to this problem - In my application's 'base.html', I have defined two blocks - {% block topbar %}{% endblock topbar %} and {% block sidebar %}{% endblock sidebar %} I have 2 templates - 'sidebar.html' which extends

Re: Template inheritance

2013-03-11 Thread Tomas Ehrlich
This approach is more flexible. It's easier to override template than override view. You can still put your "context variable" logic there, if you want. Take Django admin as example. You can customize it quiet easily when you override/subclass templates. If you want to customize view, you have to

Re: Template inheritance

2013-03-11 Thread Tom Evans
On Sat, Mar 9, 2013 at 10:28 AM, Tomas Ehrlich wrote: > Hi Nenad, > you can wrap your meta-refresh line in another block and then delete > it's content in templates which shouldn't be refreshed. > > # base_site.html > {% block extrahead %} > {% block extrahead-refresh

Re: Template inheritance

2013-03-11 Thread Tom Evans
On Sat, Mar 9, 2013 at 9:41 AM, Nenad Cikic wrote: > Hello, > I am using django admin for my project so I am not writing much templates by > myself, therefore I am not very skilled with them, so excuse me if I ask > dumb question. > I have extended base_site.html to add

Re: Template inheritance

2013-03-09 Thread Nenad Cikic
Many thanks I new it should exist better way. Nenad -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this

Re: Template inheritance

2013-03-09 Thread Tomas Ehrlich
Hi Nenad, you can wrap your meta-refresh line in another block and then delete it's content in templates which shouldn't be refreshed. # base_site.html {% block extrahead %} {% block extrahead-refresh %} {% endblock %} {% endblock %} # change_form.html -- deletes content of

Re: Template inheritance

2013-03-09 Thread Nenad Cikic
Thanks, yes, this is what I did. I just wanted to know if there is a better way. In the case I add something more to base_site extrahead I would be in trouble. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Template inheritance

2013-03-09 Thread Shawn Milochik
If the refresh is the only thing in your "extrahead" block, then just don't add block.super to extrahead in your change form, and you can eliminate the "if" statement from it in your base template. -- You received this message because you are subscribed to the Google Groups "Django users"

Template inheritance

2013-03-09 Thread Nenad Cikic
Hello, I am using django admin for my project so I am not writing much templates by myself, therefore I am not very skilled with them, so excuse me if I ask dumb question. I have extended base_site.html to add browser refresh in block extrahead. I do not want however to do refresh while I am

Re: Template inheritance and passing variables

2012-04-10 Thread andrea mucci
Hi in django documentation https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs Note The include tag should be considered as an implementation of "render this subtemplate and include the HTML", not as "parse this subtemplate and include its contents as if it were part of

Template inheritance and passing variables

2012-04-10 Thread bnkwsk
Hi, while writing my first website in Django I ran into troubles with passing variables in my inherited templates. Let me describe my templates' structure. I have a base template for all applications' templates which includes some parts - just to divide the code into smaller parts. My goal is to

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread robinne
Ok, thanks everyone for the replies. I will take a look at these suggestions. On May 13, 6:06 am, Michal Petrucha wrote: > On Thu, May 12, 2011 at 08:15:59PM -0700, robinne wrote: > > How can I render dynamic content in a base template if I only call a > > view on my

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Michal Petrucha
On Thu, May 12, 2011 at 08:15:59PM -0700, robinne wrote: > How can I render dynamic content in a base template if I only call a > view on my child template? > > What I am trying to do is setup a base template that will include > "Profile" information for the user who is logged in, for example: >

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Gabe
I suggest reading about inclusion tags: http://docs.djangoproject.com/en/1.3/howto/custom-template-tags/ worked for me Gabe On 13 Maj, 07:51, Mateusz Marzantowicz wrote: > On Fri, May 13, 2011 at 5:15 AM, robinne wrote: > > How can I

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Mateusz Marzantowicz
On Fri, May 13, 2011 at 5:15 AM, robinne wrote: How can I render dynamic content in a base template if I only call a > view on my child template? > > What I am trying to do is setup a base template that will include > "Profile" information for the user who is logged

Re: Template inheritance, how to render dynamic content in base templates

2011-05-13 Thread Daniel Roseman
On Friday, May 13, 2011 4:15:59 AM UTC+1, robinne wrote: > > How can I render dynamic content in a base template if I only call a > view on my child template? > > What I am trying to do is setup a base template that will include > "Profile" information for the user who is logged in, for

Template inheritance, how to render dynamic content in base templates

2011-05-12 Thread robinne
How can I render dynamic content in a base template if I only call a view on my child template? What I am trying to do is setup a base template that will include "Profile" information for the user who is logged in, for example: "Welcome John", instead of "login here", on every page. But if I call

Re: Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread creecode
Glad to be of assistance! On Feb 9, 10:10 am, Dustin wrote: > Wow, thank you. Yes that was exactly my problem. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread Dustin
it worked!! This makes much more sense now, in terms of how template inheritance works... Thanks, Dustin On Feb 9, 11:14 am, creecode <creec...@gmail.com> wrote: > Hello Dustin, > > I suspect your are confused about how inheritance works. > > On Feb 9, 7:43 am, Dusti

Re: Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread creecode
Hello Dustin, I suspect your are confused about how inheritance works. On Feb 9, 7:43 am, Dustin D wrote: > No matter what I do, when I visit the parent, it just displays the > default value inside {% block problist %} as if the child doesn't > exist. I think you are

Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread Dustin D
For some reason, I cannot seem to get template inheritance working and I have tried everything I can think of, so now I'm asking here. My problem is this: When I use one template, everything works fine. But as soon as I try to offload some of the code in a child, it just doesn't show up. Here

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

template inheritance problem

2010-12-21 Thread Harbhag Singh Sohal
I am having base.html template as follows: {% block title %}{% endblock %} Sohal Corporations Official Site {% block content%}{% endblock %} {% block footer %}{% endblock %} Then I am having title.html template as follows: {% extends "base.html" %}

debugging template inheritance

2010-08-05 Thread msoulier
Hi, I have a framework on a product that allows new django projects to make use of an existing project's code, so new projects can reduce duplication. It does this in templates by some trickery with the TEMPLATE_DIRS. For example, I have a base project here

debugging template inheritance

2010-08-04 Thread Michael P. Soulier
Hi, I have a framework on a product that allows new django projects to make use of an existing project's code, so new projects can reduce duplication. It does this in templates by some trickery with the TEMPLATE_DIRS. For example, I have a base project here

Application template inheritance and customization

2010-01-15 Thread Olivier Guilyardi
template inheritance as shown below. In the application: telemeta/templates/telemeta_default/somepage.html: {% extends "telemeta/base.html" %} {% load telemeta_utils %} {% block content1 %} [...] {% endblock %} {% block content2 %} [...] {% endblock %} telemeta/template

Re: Template Inheritance - best solution

2009-08-29 Thread Devang Modi
You can include navigation base template code under djnago block and in your template make that block empty. example: base.html {% block navigation %} some code {% endblock navigtion%} child.html {% extends "base.html %} {% block navigation %}{% endblock navigation %} -Devang. On 8/29/09,

Re: Template Inheritance - best solution

2009-08-29 Thread haraldthi
On 29 Aug, 06:17, eeyore wrote: > I am working on an app that currently has two main base templates. > > What I would like to do is to avoid having multiple base templates and > having duplicated code withing my templates. > > For example I might have navigation include in

Template Inheritance - best solution

2009-08-28 Thread eeyore
I am working on an app that currently has two main base templates. What I would like to do is to avoid having multiple base templates and having duplicated code withing my templates. For example I might have navigation include in the base template, but on the login screen there is no

Re: Multiple template inheritance

2009-08-21 Thread Rom
Nevermind. This one was a trivial one: missing a % Generally speaking, I think that it would help a lot to get an example with a block inside a block... Rom On Aug 21, 12:07 am, Daniel Roseman wrote: > On Aug 21, 12:26 am, Rom wrote: > > > > > > >

Re: Multiple template inheritance

2009-08-21 Thread Daniel Roseman
On Aug 21, 12:26 am, Rom wrote: > Hi, > > I'm building a website using app engine. > > I would like to use multiple inheritance but I'm not allow to put > block inside a block. > Here is piece of code which should describe the problem well: > > let's assume a .html file called

Multiple template inheritance

2009-08-20 Thread Rom
Hi, I'm building a website using app engine. I would like to use multiple inheritance but I'm not allow to put block inside a block. Here is piece of code which should describe the problem well: let's assume a .html file called meta_base.html: http://www.w3.org/TR/html4/strict.dtd;> {%

Re: Mutiple template inheritance

2009-05-28 Thread Steve Howell
or no > >>    display additional info box: yes or no > > >> In other words, there are a total of four cases that need to be   > >> provided for. > > >> I understand how to use template inheritance so that a derived   > >> template > >> w

Re: Mutiple template inheritance

2009-05-28 Thread Daniele Procida
there are a total of four cases that need to be >> provided for. >> >> I understand how to use template inheritance so that a derived >> template >> will contain a block that overrides the default presence of the >> navigation menu. >> >> I could create a

Re: Mutiple template inheritance

2009-05-28 Thread Masklinn
; provided for. > > I understand how to use template inheritance so that a derived > template > will contain a block that overrides the default presence of the > navigation menu. > > I could create a total of four derived templates, one for each case; > that would be OK too.

Mutiple template inheritance

2009-05-28 Thread Daniele Procida
I need to create some templates that will cover a number of cases: display navigation menu: yes or no display additional info box: yes or no In other words, there are a total of four cases that need to be provided for. I understand how to use template inheritance so that a derived

Re: template inheritance

2009-01-12 Thread bruno desthuilliers
On 12 jan, 10:56, Jo <spaceout...@gmail.com> wrote: > On Jan 12, 10:22 am, bruno desthuilliers > > > > <bruno.desthuilli...@gmail.com> wrote: > > On 11 jan, 18:46, Jo <spaceout...@gmail.com> wrote: > > > > While building a website using templa

Re: template inheritance

2009-01-12 Thread adrian
> It would be nice to > render data as it comes. Instead of waiting for all the computation to > finish. That is exactly what AJAX is for. You can display your page, then load more data into part of it. --~--~-~--~~~---~--~~ You received this message because

Re: template inheritance

2009-01-12 Thread Jo
On Jan 12, 10:22 am, bruno desthuilliers <bruno.desthuilli...@gmail.com> wrote: > On 11 jan, 18:46, Jo <spaceout...@gmail.com> wrote: > > > While building a website using template inheritance one usually does > > the following: > > > fetch from database >

Re: template inheritance

2009-01-12 Thread bruno desthuilliers
On 11 jan, 18:46, Jo <spaceout...@gmail.com> wrote: > While building a website using template inheritance one usually does > the following: > > fetch from database > fetch from some more data from database > ... << more required computations > then at the end ren

Re: template inheritance

2009-01-11 Thread James Matthews
Not always sometimes you want to show some template code (You have a blog about web dev) and sometimes you want to nest some code. On Sun, Jan 11, 2009 at 10:04 PM, Diez B. Roggisch <de...@nospam.web.de>wrote: > Alex K schrieb: > >> While building a website using template inher

template inheritance

2009-01-11 Thread Jo
While building a website using template inheritance one usually does the following: fetch from database fetch from some more data from database ... << more required computations then at the end render the template with the fetched data Without template inheritance one usually does the fol

Re: template inheritance miff

2008-12-20 Thread bruno desthuilliers
On 20 déc, 18:48, "Milan Andric" wrote: > Hello, > > I have two templates in this example, > page_base.htmlhttp://dpaste.com/101058/and intro.html > http://dpaste.com/101059/. > intro.html inherits from page_base.html, but the content_head block > does not get inherited.

template inheritance miff

2008-12-20 Thread Milan Andric
Hello, I have two templates in this example, page_base.html http://dpaste.com/101058/ and intro.html http://dpaste.com/101059/ . intro.html inherits from page_base.html, but the content_head block does not get inherited. what am i doing wrong or mis-understanding? Thanks for your help,

Re: Template inheritance

2008-11-06 Thread Alaric Haag
Belated thanks for that; the "specialization" tip helps. It feels a little like I haven't flopped over to the correct way of thinking about it. Custom tags and inclusion tags are helping me sort it out a bit though. --~--~-~--~~~---~--~~ You received this

Re: Template inheritance

2008-11-03 Thread pk
One simple way to think about template inheritance (which is a GREAT feature) is to think of it as "specialization": You first define the general look of a website, the logo, banner, menu bars, footers. All that goes into the base template A. In fact, you can render just the bas

Template inheritance

2008-11-01 Thread fremder
Hello, I feel I have learned a lot about Django, and am loving it, but I seem to be missing something quite fundamental about template inheritance. Should templates be a set up only for "straight line" inheritance? My thinking about them leads to a "tree" where a templ

Re: Template inheritance and flatpages

2008-10-16 Thread chiggsy
> > Yeps. But use {% extends "base.html" %} instead - notice the quotes. Aie! How could I miss that? :( Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Template inheritance and flatpages

2008-10-16 Thread bruno desthuilliers
On 16 oct, 12:32, chiggsy <[EMAIL PROTECTED]> wrote: > If I am using flatpages, can i have my flatpages/default.html inherit > from my sites base.html? > > I've a template dir, with a subdirectory "flatpages" and file > "default.html" inside that subdir. > > Now, in default.html the first line is

Template inheritance and flatpages

2008-10-16 Thread chiggsy
If I am using flatpages, can i have my flatpages/default.html inherit from my sites base.html? I've a template dir, with a subdirectory "flatpages" and file "default.html" inside that subdir. Now, in default.html the first line is {%extends base.html%} which is in the directory above the

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

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

Template inheritance problem

2008-10-01 Thread FC
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, and finally I have a viaje_sg_a.html template which should add a form

Re: Template Inheritance Question

2008-09-19 Thread djandrow
Its shared hosting so it could just be the file editor (which is built in) that they use causing it to happen if this doesn't happen to anyone else. If no one else is having the problem I would imangine that would be it. Thanks, Andrew --~--~-~--~~~---~--~~ You

Re: Template Inheritance Question

2008-09-19 Thread Matthias Kestenholz
On Sat, Sep 20, 2008 at 12:08 AM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 19, 2008 at 4:07 PM, djandrow <[EMAIL PROTECTED]> wrote: >> >> I have a template, text that extend a template base. >> >> In my text template I have; >> >> {% extends 'base.html' %} >> >> {% block

Re: Template Inheritance Question

2008-09-19 Thread David Durham, Jr.
On Fri, Sep 19, 2008 at 4:07 PM, djandrow <[EMAIL PROTECTED]> wrote: > > I have a template, text that extend a template base. > > In my text template I have; > > {% extends 'base.html' %} > > {% block content %} > > SOME CODE > > {% endblock content %} I'm not a django expert, but I think that

Template Inheritance Question

2008-09-19 Thread djandrow
I have a template, text that extend a template base. In my text template I have; {% extends 'base.html' %} {% block content %} SOME CODE {% endblock content %} Anyway, my question is when I enter this save it then stick it on my server, it adds closing tags at the bottom; and the Doctype

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

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

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
only be one inheritance chain, and you call the *child* at the end of the chain, not the parent. You might benefit from re-reading the documentation on template inheritance: http://docs.djangoproject.com/en/dev/topics/templates/#id1 Your use case sounds like it would be better fulfilled by using ei

  1   2   >