summaryrefslogtreecommitdiff
path: root/django/core/management/commands/runserver.py
AgeCommit message (Collapse)Author
2026-01-26Fixed #36776 -- Clarified dev server runs in WSGI mode.jafarkhan83
2025-03-21Fixed #36266 -- Renamed HIDE_PRODUCTION_WARNING environment variable to ↵Johanan Oppong Amoateng
DJANGO_RUNSERVER_HIDE_WARNING.
2024-12-11Fixed #35920 -- Observed requires_system_checks in migrate and runserver.Jacob Walls
Before, the full suite of system checks was run by these commands regardless if requires_system_checks had been overridden. Co-authored-by: Simon Charette <charette.s@gmail.com>
2024-08-12Refs #35591 -- Removed hardcoded "stable" version in runserver warning.Mariusz Felisiak
2024-08-09Fixed #35591 -- Added unsuitable for production console warning to runserver.Andrew Miller
2024-03-01Made runserver close database connections from migration checks.Florian Apolloner
2023-02-10Fixed #32813 -- Made runserver display port after binding.Dhanush
Thanks Florian Apolloner for the review.
2022-10-04Fixed #34068 -- Corrected output of runserver command for "0" IP address.Dhanush
Thanks David Sanders for the review.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-08-31Fixed #25264 -- Allowed suppressing base command options in --help output.Jan Szoja
This also suppresses -verbosity and --trackback options in the runserver's help.
2021-07-29Fixed 32956 -- Lowercased spelling of "web" and "web framework" where ↵David Smith
appropriate.
2021-01-18Fixed #32296 -- Added --skip-checks option to runserver command.Hasan Ramezani
2020-05-21Fixed #31546 -- Allowed specifying list of tags in ↵Hasan Ramezani
Command.requires_system_checks.
2020-04-27Refs #18325 -- Removed unnecessary line endings in management commands.François Freitag
The OutputWrapper automatically adds \n when it’s not present.
2019-10-29Fixed #30899 -- Lazily compiled import time regular expressions.Hasan Ramezani
2019-09-24Removed some outdated backwards compatibility imports and misleading comments.Mads Jensen
EmptyResultSet moved in 46509cf13dbf049f75077981c29ef2c60b5a96ab. FieldDoesNotExist moved in 8958170755b37ce346ae5257c1000bd936faa3b0. BoundField and pretty_name moved in 8550161e531a603d57723850fb09c4c9b7ca60b9. EMPTY_VALUES moved in 471596fc1afcb9c6258d317c619eaf5fd394e797. BaseRunserverCommand moved in 5c53e30607014163872e89c221b206992a9acfef.
2019-02-13Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis
Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters.
2019-01-28Fixed #30137 -- Replaced OSError aliases with the canonical OSError.Jon Dufresne
Used more specific errors (e.g. FileExistsError) as appropriate.
2019-01-13Fixed #27685 -- Added watchman support to the autoreloader.Tom Forbes
Removed support for pyinotify (refs #9722).
2018-08-22Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz
2018-05-13Fixed #17379 -- Removed management commands deactivation of the locale.Claude Paroz
2018-02-01Fixed imports per isort 4.3.0.Mariusz Felisiak
2017-12-20Fixed #28941 -- Fixed crash in testserver command startup.Tim Graham
Regression in 2b09e4c88e96cb03b29f5a6b0e4838ab4271e631.
2017-10-20Removed redundant inner imports.Mariusz Felisiak
2017-04-01Removed implicit default store_true/false argparse args.Jon Dufresne
argparse automatically sets the default value for store_true/false arguments to its opposite.
2017-03-04Refs #27795 -- Removed unneeded force_text callsClaude Paroz
Thanks Tim Graham for the review.
2017-02-21Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan
2017-01-27Refs #27537 -- Added default_addr(_ipv6) attributes to runserver command.Ed Morley
2017-01-25Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand
2017-01-20Refs #23919 -- Removed unneeded str() callsClaude Paroz
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-09Fixed #27705 -- Added protocol/server_cls attributes to runserver for ↵David Sanders
extensibility.
2016-11-14Fixed E305 flake8 warnings.Ramin Farajpour Cami
2016-04-08Fixed E128 flake8 warnings in django/.Tim Graham
2016-03-05Refs #26315 -- Cleaned up argparse options in commands.Jon Dufresne
* Removed type coercion. Options created by argparse are already coerced to the correct type. * Removed fallback default values. Options created by argparse already have a default value. * Used direct indexing. Options created by argparse are always set. This eliminates the need to use dict.get().
2016-02-12Fixed #25304 -- Allowed management commands to check if migrations are applied.Mounir Messelmeni
2015-12-21Fixed #25855 -- Enhanced the migration warning for runserver.Emre Yilmaz
Added unapplied migration count and the list of unmigrated apps.
2015-08-29Fixed #24704 -- Made the autoreloader survive SyntaxErrors.Aymeric Augustin
With this change, it's expected to survive anything except errors that make it impossible to import the settings. It's too complex to fallback to a sensible behavior with a broken settings module. Harcoding things about runserver in ManagementUtility.execute is atrocious but it's the only way out of the chicken'n'egg problem: the current implementation of the autoreloader primarily watches imported Python modules -- and then a few other things that were bolted on top of this design -- but we want it to kick in even if the project contains import-time errors and django.setup() fails. At some point we should throw away this code and replace it by an off-the-shelf autoreloader that watches the working directory and re-runs `django-admin runserver` whenever something changes.
2015-05-13Fixed #24742 -- Made runserver.check_migrations ignore read-only databasesClaude Paroz
Thanks Luis Del Giudice for the report, and Aymeric Augustin and Markus Holtermann for the reviews.
2015-05-12Allowed runserver sublcasses to easily override the default port.Matt Robenolt
2015-03-09Made runserver use leave_locale_aloneClaude Paroz
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-19Refs #16905 -- Replaced call to removed method in runserverR3v1L
Regression introduced in 0f169098efd099fd7ae13bd8e14b798530d74da7
2014-12-02Tweaked fix for refs #23946; thanks Claude.Tim Graham
2014-12-02Fixed #23946 -- Fixed runserver crash when socket error contains Unicode chars.Andriy Sokolovskiy
2014-10-22Fixed #23107 -- Made runserver output respect --no-color.Loic Bistuer
This commit reverts 67d7da5fb9498b811f0168f5df2308ad4743027f. The previous fix changed the environment globally, which meant that any call to `call_command(no_color=True)` prevented further `call_command` with color. This fix still relies on the environment because it's currently the only way to reach WSGIRequestHandler, but it's now limited to the `runserver` command. This seems an acceptable compromise considering `runserver` runs indefinitely. Thanks Tim Graham for the review.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-08-14Fixed #23265 -- Used system-specific encoding in runserverClaude Paroz
Thanks SpaceFox for the report.
2014-06-14Converted remaining management commands to argparseClaude Paroz