diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 1edec190d8a..6363af78358 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -28,7 +28,12 @@ # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -import os, sys, thread, time +import os, sys, time + +try: + import thread +except ImportError: + import dummy_thread as thread RUN_RELOADER = True