MCPcopy
hub / github.com/django/django / start_django

Function start_django

django/utils/autoreload.py:667–678  ·  view source on GitHub ↗
(reloader, main_func, *args, **kwargs)

Source from the content-addressed store, hash-verified

665
666
667def start_django(reloader, main_func, *args, **kwargs):
668 ensure_echo_on()
669
670 main_func = check_errors(main_func)
671 django_main_thread = threading.Thread(
672 target=main_func, args=args, kwargs=kwargs, name="django-main-thread"
673 )
674 django_main_thread.daemon = True
675 django_main_thread.start()
676
677 while not reloader.should_stop:
678 reloader.run(django_main_thread)
679
680
681def run_with_reloader(main_func, *args, **kwargs):

Callers 1

run_with_reloaderFunction · 0.85

Calls 3

ensure_echo_onFunction · 0.85
check_errorsFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected