code: def get_fileservice_dir():
      
      conf = getattr(settings, 'FILESERVICE_CONFIG', {})
      dir = conf.get('store_dir', './fileservice_store')
      return os.path.normpath(dir) + os.sep
docs: example settings file
      FILESERVICE_CONFIG = {
          'store_dir': '/var/lib/geoserver_data/fileservice_store'
      }