checks.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:openbare 作者: openbare 项目源码 文件源码
def deprecated_settings(app_configs, **kwargs):
    issues = []
    if ('payment_statement' in settings.HOST):
        issues.append(
            Warning(
                "The setting HOST['payment_statement'] is no longer rendered.",
                hint="Create a FrontpageMessage through the admin interface instead.",
                obj='settings.HOST',
                id='openbare.W001'
            )
        )
    if ('use_statement' in settings.HOST):
        issues.append(
            Warning(
                "The setting HOST['use_statement'] is no longer rendered.",
                hint="Create a FrontpageMessage through the admin interface instead.",
                obj='settings.HOST',
                id='openbare.W002'
            )
        )
    return issues
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号