summaryrefslogtreecommitdiff
path: root/django/core/management/utils.py
AgeCommit message (Collapse)Author
2024-11-29Fixed #35308 -- Handled OSError when launching code formatters.Jacob Walls
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
2023-01-18Refs #34233 -- Used str.removeprefix()/removesuffix().Mariusz Felisiak
2022-09-07Fixed #33986 -- Hardened binary lookup in template commands.Shai Berger
Made template commands look up formatters before writing files. This makes sure files included in the template are not identified as executable formatter commands, even in case the template is rendered into the system path (as might easily happen on Windows, where the current directory is on the system path by default). While at it, Warned about trusting custom templates for startapp/startproject. Thanks Trung Pham of Viettel Cyber Security for reporting the issue, Django Security Team for discussions, and Adam Johnson and Carlton Gibson for reviews.
2022-02-11Refs #33476 -- Made management commands use black.Carlton Gibson
Run black on generated files, if it is available on PATH.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-09-27Refs #32355 -- Modernized subprocess.run() calls.Adam Johnson
2019-08-23Replaced subprocess commands by run() wherever possible.Claude Paroz
2019-08-12Corrected multiple typos.Min ho Kim
2019-01-28Refs #29973 -- Extracted helper functions from makemessages.rsiemens
2018-08-23Fixed #29704 -- Fixed manage.py test --testrunner if it isn't followed by an ↵Matthijs Kooijman
equals sign.
2018-01-31Refs #27795 -- Replaced force_text() usage in django.core.management.Jon Dufresne
Use decode() since Popen.communicate() always returns bytes.
2018-01-31Removed unused os_err_exc_type kwarg from core.management.utils.popen_wrapper().Jon Dufresne
Unused since its introduction in 7fca4416c7f7ce66d528f0d1ad829cf3b8290b89.
2017-02-21Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan
2017-01-22Refs #23919 -- Replaced six.reraise by raiseClaude Paroz
2017-01-18Refs #23919 -- Removed six.<various>_types usageClaude Paroz
Thanks Tim Graham and Simon Charette for the reviews.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2016-06-09Fixed #20468 -- Added loaddata --exclude option.Berker Peksag
Thanks Alex Morozov for the initial patch.
2016-02-11Added a function for SECRET_KEY generation logic.Roberto Rosario
2015-11-19Fixed #25677 -- Prevented decoding errors in/after Popen callsClaude Paroz
Thanks Gavin Wahl for the report and Tim Graham for the review.
2015-05-01Fixed #23271 -- Fixed makemessages crash/test failure for some locales.daphshez
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2014-11-17Simplified handle_extensions management utilityClaude Paroz
makemessages now doesn't need any special ignoring logic, after commit bb4a92d784.
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-03-26Fixed #22335 -- Fixed popen_wrapper error on non-English Windows systems.Zbigniew Siciarz
2014-03-22Fixed #22256 -- Replaced bad fallback for missing PATHPatrick Michaud
Thanks Baptiste Mispelon for the review.
2013-11-02More attacking E302 violatorsAlex Gaynor
2013-08-30Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette
2013-07-29Removed most of absolute_import importsClaude Paroz
Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
2013-03-10Made (make|compile)messages check for availability of gettext commands.Ramiro Morales
Refs #19584.
2013-03-03Fixed #19942 -- Decoded errors coming from Popen commandsClaude Paroz
Thanks Aymeric Augustin for reporting the issue.
2013-02-26Move management helper function to new utils module.Ramiro Morales
This allows us to iremove an inter-command import.
2013-02-26Don't use os.system() in compilemessages.Ramiro Morales
Fixes #19584. This implies stop storing file path command line arguments in envvars as a security measure to start relying on with Popen's shell=False instead, and addition of an 'utils' module. Thanks kmichel_wgs for the report.