(self, django_main_thread)
| 343 | return False |
| 344 | |
| 345 | def run(self, django_main_thread): |
| 346 | global _url_module_exception |
| 347 | logger.debug("Waiting for apps ready_event.") |
| 348 | self.wait_for_apps_ready(apps, django_main_thread) |
| 349 | from django.urls import get_resolver |
| 350 | |
| 351 | # Prevent a race condition where URL modules aren't loaded when the |
| 352 | # reloader starts by accessing the urlconf_module property. |
| 353 | try: |
| 354 | get_resolver().urlconf_module |
| 355 | except Exception as e: |
| 356 | # Loading the urlconf can result in errors during development. |
| 357 | # If this occurs then store the error and continue. |
| 358 | _url_module_exception = e |
| 359 | logger.debug("Apps ready_event triggered. Sending autoreload_started signal.") |
| 360 | autoreload_started.send(sender=self) |
| 361 | self.run_loop() |
| 362 | |
| 363 | def run_loop(self): |
| 364 | ticker = self.tick() |
no test coverage detected