parameters: (request)
docstring: @type request: HttpRequest
function: def app_context_processor(request):
      """
      @type request: HttpRequest
      """
      if request.user.id is None:
          return {}
      try:
          SysUser.objects.get(pk=request.user.id)
          return {'IS_SYSUSER': True, 'SITE_NAME': "Mazar"}
      except SysUser.DoesNotExist:
          return {'IS_SYSUSER': False}
function_tokens: def app_context_processor ( request ) : if request . user . id is None : return { } try : SysUser . objects . get ( pk = request . user . id ) return { 'IS_SYSUSER' : True , 'SITE_NAME' : "Mazar" } except SysUser . DoesNotExist : return { 'IS_SYSUSER' : False }