summaryrefslogtreecommitdiff
path: root/django/core/management
AgeCommit message (Collapse)Author
2015-12-31Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.Anssi Kääriäinen
Django's test suite often tries to load fixture files from apps that have no fixtures at all. This creates a lot of unnecessary disabling and enabling of constraints which can be expensive on some database. To speed this up, loaddata now first checks if any fixture file matches. If no fixture file is matched, then the command exits before disabling and enabling of constraints is done. The main benefit of this change is seen on MSSQL, where tests on Django 1.8 run hours faster.
2015-12-22Fixed #25838 -- Added "python" as an interface to the shell command.Jon Dufresne
Deprecates the "--plain" option.
2015-12-21Fixed #25958 -- Removed support for 'skip_validation' in ↵Tim Graham
BaseCommand.execute(**options).
2015-12-21Fixed #25855 -- Enhanced the migration warning for runserver.Emre Yilmaz
Added unapplied migration count and the list of unmigrated apps.
2015-12-18Fixed #25063 -- Added path to makemigration's output of migration file.Niels Van Och
2015-12-03Fixed many spelling mistakes in code, comments, and docs.Josh Soref
2015-11-25Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.Jacek Bzdak
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-11-18Removed redundant termcolors.Tim Graham
Replaced MIGRATE_SUCCESS and MIGRATE_FAILURE with SUCCESS and ERROR.
2015-11-17Simplified lists creation in three places.Dmitry Dygalo
2015-11-14Made BaseCommand.get_version() docstring consistent with docs.Baptiste Mispelon
2015-10-25Removed hardcoded utf-8 BOM, used value from codecs instead.Jon Dufresne
2015-10-24Fixed #25604 -- Added makemigrations --check option.Jon Dufresne
Command exits with non-zero status if changes without migrations exist.
2015-10-22Fixed #25589 -- Allowed startapp/project to create apps with Unicode ↵Yoong Kang Lim
characters in the name.
2015-10-18Fixed #25510 -- Allowed runserver to start with incorrect INSTALLED_APPS.Aymeric Augustin
In that case, the content of INSTALLED_APPS will be ignored until it's fixed and the autoreloader kicks in. I confirmed this behavior manually. As explained on the ticket it's hard to write a test for this case
2015-10-05Fixed #25500 -- Added --fail-level option to check command.Jon Dufresne
This option specifies the level that check command exits with a non-zero status. Default is ``ERROR``.
2015-10-03Fixed #25483 -- Allowed passing non-string arguments to call_commandClaude Paroz
Thanks KS Chan for the report and Tim Graham for the review.
2015-09-23Refs #22835 -- Removed NoArgsCommand per deprecation timeline.Tim Graham
2015-09-23Refs #23359 -- Removed the migrate --list option per deprecation timeline.Tim Graham
2015-09-23Refs #19973 -- Removed optparse support in management commands per ↵Tim Graham
deprecation timeline.
2015-09-19Fixed #25390 -- Allowed specifying a start migration in squashmigrationsMarkus Holtermann
Thanks Tim Graham for the review.
2015-09-15Added upgrade tip in BaseCommand.option_list deprecation comment.Daniel Hahler
2015-09-12Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić
2015-09-09Allowed a port range for the liveserver by default.Aymeric Augustin
This is required for running tests in parallel.
2015-09-09Fixed #25372 -- Fixed autocompletion for options of non-argparse commands.Daniel Hahler
2015-09-08Fixed #25350 -- Added alias --no-input for --noinput to management commands.Raphael Michel
2015-09-04Fixed #25144 -- Allowed migrate to create tables for apps without migrations.Tim Graham
2015-08-31Fixed #25331 -- Removed trailing blank lines in docstrings.Maxime Lorant
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-08-28Fixed #17375 -- Changed makemessages to use xgettext with --files-fromSergey Kolosov
Changed the way makemessages invokes xgettext from one call per translatable file to one call per locale directory (using --files-from). This allows to avoid https://savannah.gnu.org/bugs/index.php?35027 and, as a positive side effect, speeds up localization build.
2015-08-28Fixed #25318 -- Made SILENCED_SYSTEM_CHECKS suppress all messages.Tim Graham
Previously, messages of ERROR level or higher were printed to the console.
2015-08-24Fixed #25047 -- Improved "Conflicting migrations" error message.Tim Graham
2015-08-19Fixed #25285 -- Provided unknown command message with plain django-admin.pyClaude Paroz
Thanks Maxime Lorant for the report and Tim Graham for suggesting the improved comment.
2015-08-18Fixed #24755 -- Hid operations from dependency apps when merging migrationsMarkus Holtermann
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-08-07Fixed #25231 -- Added recording of squashed migrations in the migrate command.mlavin
Ensured squashed migrations are recorded as applied when the migrate command is run and all of the original migrations have been previously applied.
2015-07-27Fixed #21127 -- Started deprecation toward requiring on_delete for ↵Flavio Curella
ForeignKey/OneToOneField
2015-07-24Fixed #22258 -- Added progress status for dumpdata when outputting to fileClaude Paroz
Thanks Gwildor Sok for the report and Tim Graham for the review.
2015-07-21Fixed #25155 -- Removed an inner class in core.management.color for PyPy ↵Tim Graham
performance.
2015-07-14Fixed #25123 -- Corrected makemessages --extension help textCesar Canassa
2015-07-13Fixed #24375 -- Added Migration.initial attributeAndrei Kulakov
The new attribute is checked when the `migrate --fake-initial` option is used. initial will be set to True for all initial migrations (this is particularly useful when initial migrations are split) as well as for squashed migrations.
2015-06-27Sorted imports in __init__.py files.Tim Graham
2015-06-24Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham
Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
2015-06-22Fixed #24970 -- Added --managers and --admins options to the sendtestemail ↵Rolo
management command.
2015-06-16Fixed #24971 -- Made startapp generate an apps.pyMounir Messelmeni
2015-06-15Removed django.utils.functional.total_ordering()Tim Graham
2015-06-13Fixed #24978 -- Escaped special characters in loaddata fixture pathsMoritz Sichert
2015-06-11Fixed #24950 -- Added unicode_literals to models.py in app templateMarkus Holtermann
Thanks Tim Graham for the patch
2015-06-09Fixed #24769 -- Cast optparse verbosity argument to an integer for better ↵Rivo Laks
backwards compatibility. Using `BaseCommand.options_list` makes Django use the legacy optparse parser, which does not set the verbosity attribute correctly. Now the verbosity argument is always cast to int. Regression in 8568638 (#19973). Initial report and patch from blueyed.
2015-06-04Fixed #24159 -- Made compilemessages run across all apps.Matthew Somerville
Updated the command to match the documentation, which states it runs over all .po files.
2015-05-22Fixed #24776 -- Improved apps.get_app_config() error message on ↵Peter Inglesby
fully-qualified package names.