Python django.core.checks 模块,run_checks() 实例源码

我们从Python开源项目中,提取了以下28个代码示例,用于说明如何使用django.core.checks.run_checks()

项目:NarshaTech    作者:KimJangHyeon    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:NarshaTech    作者:KimJangHyeon    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:Scrum    作者:prakharchoudhary    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:Scrum    作者:prakharchoudhary    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:django    作者:alexsukhrin    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:django    作者:alexsukhrin    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:django-composite-foreignkey    作者:onysos    | 项目源码 | 文件源码
def test_models_check(self):
        self.maxDiff = None
        app_configs = [apps.get_app_config("testapp")]
        all_issues = checks.run_checks(
            app_configs=app_configs,
            tags=None,
            include_deployment_checks=False,
        )
        self.assertListEqual(all_issues, [])
项目:django-composite-foreignkey    作者:onysos    | 项目源码 | 文件源码
def test_field_check_errors(self):
        with self.settings(INSTALLED_APPS=settings.INSTALLED_APPS + ("broken_test_app",)):
            self.maxDiff = None
            app_configs = [apps.get_app_config("broken_test_app")]
            all_issues = checks.run_checks(
                app_configs=app_configs,
                tags=None,
                include_deployment_checks=False,
            )
            self.assertListEqual([issue.id for issue in all_issues], [
                'compositefk.E001', 'compositefk.E002', 'compositefk.E003',
                'compositefk.E003', 'compositefk.E004', 'compositefk.E006', 'compositefk.E005' ])
项目:Gypsy    作者:benticarlos    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:Gypsy    作者:benticarlos    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:ims    作者:ims-team    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:ims    作者:ims-team    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:lifesoundtrack    作者:MTG    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:lifesoundtrack    作者:MTG    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:django-open-lecture    作者:DmLitov4    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:django-open-lecture    作者:DmLitov4    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:travlr    作者:gauravkulkarni96    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:travlr    作者:gauravkulkarni96    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:liberator    作者:libscie    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:liberator    作者:libscie    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:CSCE482-WordcloudPlus    作者:ggaytan00    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:CSCE482-WordcloudPlus    作者:ggaytan00    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:producthunt    作者:davidgengler    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:producthunt    作者:davidgengler    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:django-rtc    作者:scifiswapnil    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:django-rtc    作者:scifiswapnil    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues
项目:LatinSounds_AppEnviaMail    作者:G3ek-aR    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        return checks.run_checks(**kwargs)
项目:LatinSounds_AppEnviaMail    作者:G3ek-aR    | 项目源码 | 文件源码
def _run_checks(self, **kwargs):
        issues = run_checks(tags=[Tags.database])
        issues.extend(super(Command, self)._run_checks(**kwargs))
        return issues