Re: include statements for non-dynamic pages

2007-05-28 Thread Kenneth Gonsalves
On 29-May-07, at 8:34 AM, Russell Keith-Magee wrote: > Note that for simple cases, you may be able to use a generic view. > These are views that cover simple use cases (just render a template, > render a template for a single database object, render a template for > a list of database objects, e

Re: include statements for non-dynamic pages

2007-05-28 Thread Russell Keith-Magee
On 5/29/07, Vincent Nijs <[EMAIL PROTECTED]> wrote: > > Russell, > > I think I am starting to get the basic idea of 'extends' for templates. > However, I don't get what I need to do to get my basic example (or your > example for that matter) to generate the page I want to see in my browser. > It d

Re: include statements for non-dynamic pages

2007-05-28 Thread Vincent Nijs
Russell, I think I am starting to get the basic idea of 'extends' for templates. However, I don't get what I need to do to get my basic example (or your example for that matter) to generate the page I want to see in my browser. It doesn't just work the way php would here so I am guessing I need t

Re: include statements for non-dynamic pages

2007-05-28 Thread Russell Keith-Magee
On 5/29/07, vince <[EMAIL PROTECTED]> wrote: > > What would i need to do exactly to > get the following to work? > > {% include("design/index_nav.html") %} > Welcome to the home page > {% include("design/footer.html") %} The following would work: {% include "design/index_nav.html" %} Welcome to

Re: include statements for non-dynamic pages

2007-05-28 Thread Kenneth Gonsalves
On 29-May-07, at 5:28 AM, vince wrote: > {% include("design/index_nav.html") %} > Welcome to the home page > {% include("design/footer.html") %} make a base.html page like this: contents of design/index_nav.html {% block maincontent %} {% endblock %} contents of design/footer.html and in your

include statements for non-dynamic pages

2007-05-28 Thread vince
I am trying to learn Django to convert a site where I use php + python cgi scripts. For consistent layout i would use php's include statement for headers and footers on the old site. It is mentioned the Django book that something similar exists for Django. Suppose i want to create a home page (ind