Skip to content

Commit

Permalink
Fixed #13062 -- Ensure that runserver exposes all warnings requested …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
freakboy3742 committed Jan 17, 2011
1 parent fcbf881 commit 3a9e2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/utils/autoreload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3a9e2e9

Please sign in to comment.