That's just what I needed, thanks very much.
Tim.
On Thursday 25 Sep 2008, Rock wrote:
> from django import template
> from django.conf import settings
> from django.template.defaultfilters import stringfilter
>
> register = template.Library()
>
> @register.filter
> @stringfilter
> def
I have no idea, but it only took me a few minutes to create a filter
you can put in some templatetags module:
from django import template
from django.conf import settings
from django.template.defaultfilters import stringfilter
register = template.Library()
@register.filter
@stringfilter
def
Hi Folks,
I'd like to conditionally add a link based on whether a specific app is
included in INSTALLED_APPS or not. Is there an easy way to do this from a
template?
Cheers,
Tim.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
3 matches
Mail list logo