From 3c713d7e7d1e5efb64aec62d47edf497d2f47756 Mon Sep 17 00:00:00 2001 From: Dmytro Litvinov Date: Tue, 2 Sep 2025 12:56:28 +0300 Subject: [PATCH] fix(runserver): Add support for option Closes https://github.com/django/daphne/issues/567 --- daphne/management/commands/runserver.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/daphne/management/commands/runserver.py b/daphne/management/commands/runserver.py index d505f33..62bb00b 100644 --- a/daphne/management/commands/runserver.py +++ b/daphne/management/commands/runserver.py @@ -104,9 +104,12 @@ class Command(RunserverCommand): if hasattr(RunserverCommand, "server_cls"): self.server_cls = RunserverCommand.server_cls return RunserverCommand.inner_run(self, *args, **options) - # Run checks - self.stdout.write("Performing system checks...\n\n") - self.check(display_num_errors=True) + + if not options["skip_checks"]: + # Run checks + self.stdout.write("Performing system checks...\n\n") + self.check(display_num_errors=True) + self.check_migrations() # Print helpful text quit_command = "CTRL-BREAK" if sys.platform == "win32" else "CONTROL-C"