summaryrefslogtreecommitdiff
path: root/django/utils/autoreload.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/autoreload.py')
-rw-r--r--django/utils/autoreload.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py
index 09a696a4f9..19326a5118 100644
--- a/django/utils/autoreload.py
+++ b/django/utils/autoreload.py
@@ -300,6 +300,7 @@ class BaseReloader:
logger.debug('Waiting for apps ready_event.')
self.wait_for_apps_ready(apps, django_main_thread)
from django.urls import get_resolver
+
# Prevent a race condition where URL modules aren't loaded when the
# reloader starts by accessing the urlconf_module property.
try: