Fixed #13062 -- Ensure that runserver exposes all warnings requested at the command line. Thanks to gremmie for the report, and claudep for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-01-17 13:15:08 +00:00
parent fcbf881d82
commit 3a9e2e90ac
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def reloader_thread():
def restart_with_reloader():
while True:
args = [sys.executable] + sys.argv
args = [sys.executable] + ['-W%s' % o for o in sys.warnoptions] + sys.argv
if sys.platform == "win32":
args = ['"%s"' % arg for arg in args]
new_environ = os.environ.copy()