Randall,
On 10/22/07, DjangoFett <[EMAIL PROTECTED]> wrote:
>
> The more I "fiddle" with these templates, the more I'm understanding
> them. It was the initial learning curve that just had me confused b/c
> it wasn't what I was looking for...
There is a description of how template inheritance wo
The more I "fiddle" with these templates, the more I'm understanding
them. It was the initial learning curve that just had me confused b/c
it wasn't what I was looking for. I think I understand all you're
speaking of now, though. Thanks for your great help Karen! I'll be
seeing you on here a lot w
On 10/22/07, DjangoFett <[EMAIL PROTECTED]> wrote:
>
> I was hoping for more of a tree structure of extensions...
Note that extends can be chained. Using your example:
You start with index.html that defines all the blocks you want to customize,
as you have it now.
Then, in index_title, you ext
I think I'm starting to see the point of extends now, as I had been
assuming it was equivilant to the php include statements. What I'm
assuming extends is for now is to always have "base" files from which
to extend. You create particular layouts from which children inherit
the parents overall temp
How, then, can i extend multiple code sources off of my index.html
file?
I'm looking at the Django Template language page (http://
www.djangoproject.com/documentation/templates/) and what it's saying
(as well as my logic) isn't meshing with what you're saying. Here's a
simple example I'm creating
On 10/22/07, DjangoFett <[EMAIL PROTECTED]> wrote:
>
> def Index( request ):
>
> t = loader.get_template( 'index.html' )
>
I think you want:
t = loader.get_template( 'index_title.html' )
there. Your view code needs to specify the "extending" template you want to
have rendered, not the base te
I misesd the return line...
return HttpResponse( t.render( c ) )
On Oct 22, 11:45 am, DjangoFett <[EMAIL PROTECTED]> wrote:
> Sorry for the vagueness in my post.
>
> The problem is that there are no errors. The output is just
> unexpected. The text and code I put into the file which is index's
>
Sorry for the vagueness in my post.
The problem is that there are no errors. The output is just
unexpected. The text and code I put into the file which is index's
extension doesn't show up. I put in a default value between the
index.html block. Then I've tried to extend the block with an
alternat
What are the outwardly-visible signs of "I can't get any of the extended
files to work with index"? From what you've posted I don't know if you are
seeing errors about templates files not being found or if you are just
seeing unexpected output in your resulting HTML. You might also want to
mentio
9 matches
Mail list logo