diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-17 13:15:08 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-01-17 13:15:08 +0000 |
| commit | 3a9e2e90ac4d3685ada844c0e45099a6f654b39d (patch) | |
| tree | 65fa40fb77b03e6140e122a28878e60c20dc7d30 /django/utils/autoreload.py | |
| parent | fcbf881d8200f3771dd07be63e94171dd9548b92 (diff) | |
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
Diffstat (limited to 'django/utils/autoreload.py')
| -rw-r--r-- | django/utils/autoreload.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 8d9d6f2119..51aaccdc8e 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -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() |
