def app_name(request):
 context = {}
 name = get_app_name(request)
 if (name is not None):
  context.update({'app_name': name})
 return context

def app_name ( request ) : context = { } name = get_app_name ( request ) if ( name is not None ) : context . update ( { 'app_name' : name } ) return context
add the name of the app to the template context .