runtornado: Honor the --skip-checks flag.

This is particularly important because they can be quite heavy-weight.
This commit is contained in:
Alex Vandiver 2024-04-15 20:20:45 +00:00 committed by Tim Abbott
parent 043d3127eb
commit d341e6ced1

View File

@ -107,7 +107,8 @@ class Command(BaseCommand):
# We pass display_num_errors=False, since Django will
# likely display similar output anyway.
self.check(display_num_errors=False)
if not options["skip_checks"]:
self.check(display_num_errors=False)
print(f"Tornado server (re)started on port {port}")
if settings.USING_RABBITMQ: