Re: included templates to load own objects

2006-08-29 Thread Malcolm Tredinnick
Hi Mae, On Mon, 2006-08-28 at 14:53 +, Mae wrote: > I want included-including templates to be able to act independently > from each other. I want the including template to not have to know > anything about the particulars of the template it's including. > > I want to be able to write {%incl

Re: included templates to load own objects

2006-08-28 Thread Mae
Hmm. Alan, your post gives me much to think about and try. Thank you. Mae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To

Re: included templates to load own objects

2006-08-28 Thread Alan Green
Hi Mae, On 8/29/06, Mae <[EMAIL PROTECTED]> wrote: > I think what you're talking about is this paragraph from the doc: > "Also, you can give RequestContext a list of additional processors, > using the optional, third positional argument, processors. Actually, I was more thinking that you could w

Re: included templates to load own objects

2006-08-28 Thread Mae
I want included-including templates to be able to act independently from each other. I want the including template to not have to know anything about the particulars of the template it's including. I want to be able to write {%include magic_template%} and magic_template would be a url that would

Re: included templates to load own objects

2006-08-28 Thread Mae
Alan, I think what you're talking about is this paragraph from the doc: "Also, you can give RequestContext a list of additional processors, using the optional, third positional argument, processors. In this example, the RequestContext instance gets a ip_address variable: def ip_address_processor

Re: included templates to load own objects

2006-08-25 Thread Corey Oordt
Mae, I think it may be because we're not sure of what you are asking for. I know it didn't really make sense to me when I red it the first time. What exactly are you trying to accomplish? Corey On Aug 25, 2006, at 10:35 AM, Mae wrote: > > Nobody? Is it because I asked the question wrong or

Re: included templates to load own objects

2006-08-25 Thread Alan Green
Hi Mae, Two thoughts here: 1. Have a look at the TemplateContextProcessors: http://www.djangoproject.com/documentation/templates_python/#subclassing-context-requestcontext 2. Custom tags aren't that hard to write. Alan. On 8/25/06, Mae <[EMAIL PROTECTED]> wrote: > > Hi all, here's my problem:

Re: included templates to load own objects

2006-08-25 Thread Mae
Nobody? Is it because I asked the question wrong or because there just is no answer? Mae --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@goog

included templates to load own objects

2006-08-24 Thread Mae
Hi all, here's my problem: I have a bunch of templates that look like this: base.html: {% block ticker %} { % include "ticker.html" % } {% endblock %} content_page1.html: {% extends "base.html" %} do other stuff... content_page2.html: {% extends "base.html" %} do completely other stuff... I