Package madrona :: Package common :: Package templatetags :: Module appname
[hide private]

Source Code for Module madrona.common.templatetags.appname

 1  from django.conf import settings 
 2  from django.template import Node, Library 
 3   
 4  register = Library() 
5 6 @register.simple_tag 7 -def appname():
8 try: 9 name = settings.APP_NAME 10 except AttributeError: 11 name = '... settings.APP_NAME ...' 12 return str(name)
13
14 @register.simple_tag 15 -def help_email():
16 try: 17 name = settings.HELP_EMAIL 18 except AttributeError: 19 name = 'help@madrona.org' 20 return str(name)
21