mirror of
https://github.com/django/daphne.git
synced 2025-09-10 17:32:27 +03:00
fix(runserver): Add support for option
Closes https://github.com/django/daphne/issues/567
This commit is contained in:
parent
032c5608f9
commit
3c713d7e7d
|
@ -104,9 +104,12 @@ class Command(RunserverCommand):
|
||||||
if hasattr(RunserverCommand, "server_cls"):
|
if hasattr(RunserverCommand, "server_cls"):
|
||||||
self.server_cls = RunserverCommand.server_cls
|
self.server_cls = RunserverCommand.server_cls
|
||||||
return RunserverCommand.inner_run(self, *args, **options)
|
return RunserverCommand.inner_run(self, *args, **options)
|
||||||
# Run checks
|
|
||||||
self.stdout.write("Performing system checks...\n\n")
|
if not options["skip_checks"]:
|
||||||
self.check(display_num_errors=True)
|
# Run checks
|
||||||
|
self.stdout.write("Performing system checks...\n\n")
|
||||||
|
self.check(display_num_errors=True)
|
||||||
|
|
||||||
self.check_migrations()
|
self.check_migrations()
|
||||||
# Print helpful text
|
# Print helpful text
|
||||||
quit_command = "CTRL-BREAK" if sys.platform == "win32" else "CONTROL-C"
|
quit_command = "CTRL-BREAK" if sys.platform == "win32" else "CONTROL-C"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user