Re: INSTALLED_APPS from a template

2008-09-26 Thread Tim Sawyer
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

Re: INSTALLED_APPS from a template

2008-09-25 Thread Rock
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

INSTALLED_APPS from a template

2008-09-25 Thread Tim Sawyer
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