mirror of
https://github.com/django/django.git
synced 2025-08-13 21:39:13 +00:00
Fixed #2330 -- Added hack to stop KeyErrors from being thrown by the autoreloading development server if USE_I18N=False
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1cf552dcec
commit
1bf811e28d
@ -35,6 +35,14 @@ try:
|
|||||||
except ImportError:
|
except ImportError:
|
||||||
import dummy_thread as thread
|
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
|
RUN_RELOADER = True
|
||||||
|
|
||||||
def reloader_thread():
|
def reloader_thread():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user