fix(runserver): Add support for option

Closes https://github.com/django/daphne/issues/567
This commit is contained in:
Dmytro Litvinov 2025-09-02 12:56:28 +03:00
parent 032c5608f9
commit 3c713d7e7d
No known key found for this signature in database
GPG Key ID: 2D5867BEC8C1419C

View File

@ -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"