Re: template tag question

2009-08-31 Thread Bobby Roberts
On Aug 31, 1:38 pm, Julián C. Pérez wrote: > Hi > I use Django 1.0 and I define a template function like... > --- > from django import template > register = template.Library() > def doSomething(param1, param2): >    # Do something like... >    return str(param1)+''+str(param2) > register.simple_t

Re: template tag question

2009-08-31 Thread Julián C . Pérez
Hi I use Django 1.0 and I define a template function like... --- from django import template register = template.Library() def doSomething(param1, param2): # Do something like... return str(param1)+''+str(param2) register.simple_tag(doSomething) --- to use that in template system, assuming a

template tag question

2009-08-31 Thread Bobby Roberts
hi group. I"ve got an issue i'm needing help with. I have two variables, a and b in my template and I need to pass those to a single template tag so I can process them and return a result to the template. Is there a way to pass more than one variable to a template tag... if so, how? thanks in

Re: Django template tag question

2008-11-20 Thread goblue0311
yeah, it was definitley the __init__.py issue, which I will strive to never forget again. Thanks! On Nov 19, 3:52 pm, Ben Eliott <[EMAIL PROTECTED]> wrote: > what happens when you go into the python interpreter and write > import basic > > On 19 Nov 2008, at 16:58, goblue0311 wrote: > > > > > I'

Re: Django template tag question

2008-11-19 Thread Ben Eliott
what happens when you go into the python interpreter and write import basic On 19 Nov 2008, at 16:58, goblue0311 wrote: > > I'm implementing the popular basic.blog application, which requires > the inclusion of the basic.inlines project. However, I cannot seem to > get my application to locate t

Re: Django template tag question

2008-11-19 Thread Daniel Roseman
On Nov 19, 4:58 pm, goblue0311 <[EMAIL PROTECTED]> wrote: > I'm implementing the popular basic.blog application, which requires > the inclusion of the basic.inlines project. However, I cannot seem to > get my application to locate the basic.inlines project. I have asked > this question in the basi

Django template tag question

2008-11-19 Thread goblue0311
I'm implementing the popular basic.blog application, which requires the inclusion of the basic.inlines project. However, I cannot seem to get my application to locate the basic.inlines project. I have asked this question in the basic.apps group, but I think it's generic enough to be posted here as