summaryrefslogtreecommitdiff
path: root/django/core/management
AgeCommit message (Collapse)Author
2015-01-12Fixed #24129 -- Added indicator that migrations are rendering the initial stateMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-07Fixed #24073 -- Deactivated translations when leave_locale_alone is FalseClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-06Fixed gettext version regexClaude Paroz
...with the theoretical assumption that gettext may once reach a two-digit number. Thanks Walter Doekes for noticing this potential issue.
2015-01-05Refs #23359 -- Removed double newline from output of migrate --listMarkus Holtermann
Thanks Berker Peksag for the review.
2015-01-05Fixed #8280 -- Allowed management command discovery for eggsClaude Paroz
Thanks jdetaeye for the report, bhuztez and jdetaeye for the initial patches, Tim Graham and Berker Peksag for the reviews.
2015-01-02Show migration elapsed time when verbosity>1Claude Paroz
This facilitates performance debugging related to migrations.
2014-12-31Fixed #23366 -- Fixed a crash with the migrate --list command.Tim Graham
2014-12-31Fixed #23359 -- Added showmigrations command to list migrations and plan.Markus Holtermann
Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn for their input, ideas, and review.
2014-12-29Fixed breakage by 6fb9dee4 under Python2+Windows.Ramiro Morales
Refs #23271
2014-12-29Fixed #21255 -- Closed connections after management command ranClaude Paroz
Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin, Simon Charette for the reviews.
2014-12-29Fixed #23271 -- Don't corrupt PO files on Windows when updating them.Ramiro Morales
Make sure PO catalog text fetched from gettext programs via standard output isn't corrupted by mismatch between assumed (UTF-8) and real (CP1252) encodings. This can cause mojibake to be written when creating or updating PO files. Also fixes #23311. Thanks to contributor with Trac nick 'danielmenzel' for the report, excellent research and fix.
2014-12-26Replaced sqlall in some bash_completion/admin_scripts tests.Tim Graham
sqlall will be removed in Django 1.9, so now's a good time to remove its usage where it's not important.
2014-12-26Fixed #24054 -- Enabled sqlsequencereset for apps with migrations.Tim Graham
2014-12-25Fixed #23866 -- Harmonized refs to Django documentation from codeClaude Paroz
2014-12-23Replaced DatabaseCreation sql methods by schema editor equivalentsClaude Paroz
Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
2014-12-18Fixed #23788 (2) -- Improved gettext version checkerClaude Paroz
Thanks Tim Graham for the report and initial patch.
2014-12-16Fixed #23975 -- Restored pre_migrate signal if all apps have migrations.Tim Graham
Thanks kmmbvnr for the report.
2014-12-08Fixed #20968 -- Checked Spatialite metadata before migrationsClaude Paroz
Thanks Kenial S. Lee for the initial patch and Tim Graham for the review.
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
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-11-28Fixed #23728 -- Added the --exit option to makemigrations.Tim Heap
If no changes that need migrations are found, `makemigrations --exit` exits with error code 1.
2014-11-25Fixed #23899 -- Added 'Generated by Django X.Y' to startproject template.Martin Blech
2014-11-20Removed reduce() usage in makemigrations; refs #23796.Brad Walker
A lambda all_items_equal() replaced a reduce() that was broken for potential 3+-way merges. A reduce(operator.eq, ...) accumulates bools and can't generically check equality of all items in a sequence: >>> bool(reduce(operator.eq, [('migrations', '0001_initial')] * 3)) False The code now counts the number of common ancestors to calculate slice offsets for the branches. Each branch shares the same number of common ancestors. The common_ancestor for loop statement had incomplete branch coverage.
2014-11-18Fixed #18714 -- Added 'fuzzy' compilemessages optionAnton Baklanov
2014-11-18Fixed #23799 -- Made makemigrations respect --no-optimize.Tillmann Karras
Thanks to yamila-moreno for the idea of a skip message.
2014-11-17Improved readability of negative condition in makemessagesClaude Paroz
Thanks Berker Peksag for the suggestion.
2014-11-17Simplified handle_extensions management utilityClaude Paroz
makemessages now doesn't need any special ignoring logic, after commit bb4a92d784.
2014-11-17Fixed #23840 -- Fixed makemessages find_files methodIlja Maas
Changed the handling of extensions to be used for gettext. Now obeying the --extension argument. find_files now only find the given or default extensions and puts only these in the TranslatableFiles. As a result there are no more confusing messages for filetypes (extension) not handled by makemessages.
2014-11-11Normalized opening a file and decoding its content.Aymeric Augustin
`io.open` is required on Python 2.7. Just `open` would work on Python 3.
2014-11-11Fixed #23788 -- Used new JavaScript support in recent gettextClaude Paroz
JavaScript string extraction support has been added in gettext 0.18.3. Thanks Aymeric Augustin for the review.
2014-10-31Fixed #23468 -- Added checks for duplicate fixtures directories in loaddata.Konrad Świat
If settings.FIXTURE_DIRS contains duplicates or a default fixture directory (app_name/fixtures), ImproperlyConfigured is raised. Thanks to Berker Peksag and Tim Graham for review.
2014-10-30Clarified BaseCommand --traceback behavior.Matthew Somerville
2014-10-27Fixed #23717 -- Fixed makemessages crash when STATIC_ROOT=NoneClaude Paroz
2014-10-27Fixed #23699 -- Prevented flush from loading initial data for apps with ↵Tony Zhu
migrations.
2014-10-22Refactored color_style() and no_style() to improve testability. Refs #23663.Loic Bistuer
This includes the following improvements: - The type of the style object is now called 'Style' rather than 'dummy'. - The new make_style() function allows generating a Style object directly from a config string. Before the only way to get a style object was through the environ and it also required that the terminal supported colors which isn't necessarily the case when testing. - The output of no_style() is now cached with @lru_cache. - The output of no_style() now has the same set of attributes as the other Style objects. Previously it allowed anything to pass through with __getattr__.
2014-10-22Fixed #23686 -- Tweak color output of the system check framework.Loic Bistuer
Thanks Tim Graham for the review.
2014-10-22Fixed #23663 -- Initialize output streams for BaseCommand in __init__().Loic Bistuer
This helps with testability of management commands. Thanks to trac username daveoncode for the report and to Tim Graham and Claude Paroz for the reviews.
2014-10-21Fixed #23583 -- More selectively ignored static/media rootsClaude Paroz
Fixed a regression introduced by 28efafa24c. Thanks Michal Čihař for the report and initial patch, and Collin Anderson and Tim Graham for the reviews.
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-10-20Fixed #23679 -- Fixed null introspection for char/text fieldsClaude Paroz
Thanks Paul Dejean for the report.
2014-10-20Removed redundant skip_checks option for call_commandClaude Paroz
2014-10-20Revert "Fixed #23650 -- Prevented migrate from calling checks 3 times"Claude Paroz
This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e. call_command now always set skip_checks to True (tested in user_commands).
2014-10-20Fixed #23685 -- Made call_command skip checks by defaultClaude Paroz
Thanks Loic Bistuer for the report/review and Tim Graham for the review.
2014-10-19Renamed skip_validation into skip_checks as the former is now deprecated.Loic Bistuer
2014-10-19Prevented syncdb from calling system checks multiple times. Refs #23650.Loic Bistuer
2014-10-17Fixed #23650 -- Prevented migrate from calling checks 3 timesClaude Paroz
Thanks Ilya Baryshev for the report and Tim Graham for the review.
2014-10-16Fixed #23660 -- Moved sort_dependencies to core.Collin Anderson
2014-10-09Fixed #23612 -- Normalized fixuture paths to allow referencing relative ↵Brandon Taylor
paths on Windows.
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.