summaryrefslogtreecommitdiff
path: root/django/core/management/utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Refs #34233 -- Used str.removeprefix()/removesuffix().Mariusz Felisiak2023-01-181-1/+1
|
* Fixed #33986 -- Hardened binary lookup in template commands.Shai Berger2022-09-071-2/+9
| | | | | | | | | | | | | | | 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.
* Refs #33476 -- Made management commands use black.Carlton Gibson2022-02-111-0/+13
| | | | Run black on generated files, if it is available on PATH.
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-18/+20
|
* Refs #32355 -- Modernized subprocess.run() calls.Adam Johnson2021-09-271-2/+2
|
* Replaced subprocess commands by run() wherever possible.Claude Paroz2019-08-231-5/+4
|
* Corrected multiple typos.Min ho Kim2019-08-121-1/+1
|
* Refs #29973 -- Extracted helper functions from makemessages.rsiemens2019-01-281-0/+30
|
* Fixed #29704 -- Fixed manage.py test --testrunner if it isn't followed by an ↵Matthijs Kooijman2018-08-231-1/+17
| | | | equals sign.
* Refs #27795 -- Replaced force_text() usage in django.core.management.Jon Dufresne2018-01-311-3/+3
| | | Use decode() since Popen.communicate() always returns bytes.
* Removed unused os_err_exc_type kwarg from core.management.utils.popen_wrapper().Jon Dufresne2018-01-311-2/+2
| | | Unused since its introduction in 7fca4416c7f7ce66d528f0d1ad829cf3b8290b89.
* Refs #27656 -- Updated django.core docstring verbs according to PEP 257.Anton Samarchyan2017-02-211-2/+2
|
* Refs #23919 -- Replaced six.reraise by raiseClaude Paroz2017-01-221-6/+2
|
* Refs #23919 -- Removed six.<various>_types usageClaude Paroz2017-01-181-1/+1
| | | | Thanks Tim Graham and Simon Charette for the reviews.
* Refs #23919 -- Removed encoding preambles and future importsClaude Paroz2017-01-181-2/+0
|
* Fixed #20468 -- Added loaddata --exclude option.Berker Peksag2016-06-091-0/+28
| | | | Thanks Alex Morozov for the initial patch.
* Added a function for SECRET_KEY generation logic.Roberto Rosario2016-02-111-0/+9
|
* Fixed #25677 -- Prevented decoding errors in/after Popen callsClaude Paroz2015-11-191-7/+5
| | | | Thanks Gavin Wahl for the report and Tim Graham for the review.
* Fixed #23271 -- Fixed makemessages crash/test failure for some locales.daphshez2015-05-011-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-2/+2
|
* Simplified handle_extensions management utilityClaude Paroz2014-11-171-7/+4
| | | | | makemessages now doesn't need any special ignoring logic, after commit bb4a92d784.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny2014-09-291-2/+2
| | | | Thanks Collin Anderson for the review.
* Fixed #22335 -- Fixed popen_wrapper error on non-English Windows systems.Zbigniew Siciarz2014-03-261-1/+3
|
* Fixed #22256 -- Replaced bad fallback for missing PATHPatrick Michaud2014-03-221-1/+1
| | | | Thanks Baptiste Mispelon for the review.
* More attacking E302 violatorsAlex Gaynor2013-11-021-0/+1
|
* Fixed #20989 -- Removed useless explicit list comprehensions.Simon Charette2013-08-301-1/+1
|
* Removed most of absolute_import importsClaude Paroz2013-07-291-1/+1
| | | | | Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way.
* Made (make|compile)messages check for availability of gettext commands.Ramiro Morales2013-03-101-3/+37
| | | | Refs #19584.
* Fixed #19942 -- Decoded errors coming from Popen commandsClaude Paroz2013-03-031-1/+8
| | | | Thanks Aymeric Augustin for reporting the issue.
* Move management helper function to new utils module.Ramiro Morales2013-02-261-0/+24
| | | | This allows us to iremove an inter-command import.
* Don't use os.system() in compilemessages.Ramiro Morales2013-02-261-0/+14
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.