def __init__(self):
# Will check if the Weblate website is OK.
self.check_http = config('WEBLATE_CHECK_HTTP', default=True, cast=bool)
# Will check if the Weblate JSON API is OK.
self.check_json = config('WEBLATE_CHECK_JSON', default=True, cast=bool)
# If you need to monitor multiple Weblate instances and need each one
# to have a different behaviour: extend this class, override the
# __init__ function, call super, and then override these properties.
评论列表
文章目录