Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Showing with 8 additions and 0 deletions.
  1. +8 −0 django/utils/autoreload.py
View
8 django/utils/autoreload.py
@@ -35,6 +35,14 @@
except ImportError:
import dummy_thread as thread
+# This import does nothing, but it's necessary to avoid some race conditions
+# in the threading module. See http://code.djangoproject.com/ticket/2330 .
+try:
+ import threading
+except ImportError:
+ pass
+
+
RUN_RELOADER = True
def reloader_thread():
Please sign in to comment.
Something went wrong with that request. Please try again.