summaryrefslogtreecommitdiff
path: root/django/core/management
AgeCommit message (Collapse)Author
2008-10-06Fixed #9212: Added code to check the xgettext version, and if it is lower ↵Karen Tracey
than 0.15, undo an incorrect encoding to utf-8 done by xgettext. This bug was fixed in xgettext 0.15, but the most-easily-installed Windows gettext binaries are older (0.13.1), so we work around it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9155 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05Fixed #9283 -- Deliberately silence one deprecation warning raised by python ↵Malcolm Tredinnick
2.6. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-02Promoted --verbosity to be a top level option for all management commands. ↵Russell Keith-Magee
Also added -v as a consistent short form of --verbosity. This is mostly to save Malcolm's poor arthritic fingers. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9110 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-22Add some docstrings to the base classes for management commands. Refs #9170.James Bennett
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-17Fixed #8573 -- Fixed bug in 'inspectdb' regarding case-sensitivity of field ↵Adrian Holovaty
names. It was automatically lowercasing the column name to create the Field name, which was inaccurate in the case of column names that contained a capital letter. Thanks for reporting and detective work, ramiro git-svn-id: http://code.djangoproject.com/svn/django/trunk@9053 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-16Fixed #9092 -- Improved validation of app/project names by ↵Adrian Holovaty
startapp/startproject so that it doesn't allow names to start with a number. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9043 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-09Fixed #8978 -- We now print a helpful error message for 'manage.py dbshell' ↵Adrian Holovaty
if the client executable is not found. Previously we were displaying a traceback git-svn-id: http://code.djangoproject.com/svn/django/trunk@8990 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-31Fixed #8703 -- Allow deeply nested import paths for DJANGO_SETTINGS_MODULE whenMalcolm Tredinnick
running django-admin.py. Also adds a parameter to setup_environ() for others to use as well. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-30Fixed #8702 -- Set up the initial locale correctly for the development server.Malcolm Tredinnick
Previously, "--noreload" wasn't picking up the default language setting. Thanks to arien and Karen Tracey for debugging this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8749 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29Fixed #8687, a bad variable name in validation. Thanks, vung.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8697 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-26Fixed #7084 -- Fixed the "makemessages" command to handle line endingsMalcolm Tredinnick
correctly on Windows (previous behaviour was to explode when encountering a multi-line messages). Patch and testing from Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25Removed outdated "adminindex" command -- the same behavior is now far easier ↵Jacob Kaplan-Moss
and better done in a template, or perhaps a custom `AdminSite.index` function. Refs #5500. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8548 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-25Fixed #8491 -- Allow settings.LOCALE_PATH to be any sequence, not just a tuple.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #7042 -- The management validation command nows alerts users to theMalcolm Tredinnick
presence (and incorrectness) of unique=True on ManyToManyFields. This has never worked and generates invalid SQL. Now it's raised as an explicit error during validation. Thanks to clamothe for the patch. Still needs a docs change to make this clear, but that goes to the docs refactor branch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8488 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-19Fixed #7908: Added validation checks on attempts to create ForeignKey and ↵Russell Keith-Magee
M2M relations with abstract classes. Thanks to Rock Howard for the report. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8442 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-17Fixed #8239 -- Google App Engine has a restricted "imp" module, which doesn'tMalcolm Tredinnick
include one of the methods we use when constructing management help commands. So postpone the resolving of the method name until when we actually need it (which isn't run as part of GAE). Patch from Guido van Rossum. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8425 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #7285: Improved inspectdb handling of dashes in table and field names. ↵Russell Keith-Magee
Thanks to redalastor@gmail.com for the report and Justin Bronn for the first part of a fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixed #6935: Modified inspectdb to provide better handling for table names ↵Russell Keith-Magee
with spaces. Thanks to adamv for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-16Fixes #7845: Removed a piece of stale code that was causing ./manage.py ↵Russell Keith-Magee
reset to fail with apps that don't have any models. Thanks to miracle2k for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-13Refs #8138 -- Added a stealth option to the loaddata command so that the use ↵Russell Keith-Magee
of transactions in loaddata can be disabled. This behavior isn't enabled as a commad line option because it doesn't make much sense, but it can be used when invoking loaddata from another script. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8336 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-12Fixed #8246 -- Corrected the handling of settings files. Thanks to AdamG and ↵Russell Keith-Magee
chrj for their parallel reports and fixes. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8323 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Fixed #5461 -- Refactored the database backend code to use classes for the ↵Russell Keith-Magee
creation and introspection modules. Introduces a new validation module for DB-specific validation. This is a backwards incompatible change; see the wiki for details. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-10Fixed #5943 -- Modified django-admin to behave like manage.py if settings ↵Russell Keith-Magee
are provided, either as --settings or DJANGO_SETTINGS_MODULE. Thanks to Joseph Kocherhans and Todd O'Bryan for their work on this ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8282 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8100: Jython, apparently, is now a TTY.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8239 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #5463 -- Allow alternate file extensions on files that are translated.Malcolm Tredinnick
Patch from Jannis Leidel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8234 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #8120, #7997 -- Cleaned up the help messages displayed by django-admin ↵Russell Keith-Magee
so that the lax options aren't repeated, and the lax options are displayed when no subcommand is provided. Thanks to Scott Moonen <smoonen@andstuff.org> and trevor for the respective reports. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-08Fixed #5825 -- Modified the custom command loader to allow for explicit ↵Russell Keith-Magee
specification of the project name, even if the project directory isn't in the python path. This brings custom command loading into alignment with application loading. Thanks to jdetaeye@frepple.com for the original report, and to abozanich for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-06Major refactoring of django.dispatch with an eye towards speed. The net ↵Jacob Kaplan-Moss
result is that signals are up to 90% faster. Though some attempts and backwards-compatibility were made, speed trumped compatibility. Thus, as usual, check BackwardsIncompatibleChanges for the complete list of backwards-incompatible changes. Thanks to Jeremy Dunck and Keith Busell for the bulk of the work; some ideas from Brian Herring's previous work (refs #4561) were incorporated. Documentation is, sigh, still forthcoming. Fixes #6814 and #3951 (with the new dispatch_uid argument to connect). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8223 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-31Fixed #8053 -- Corrected a bug with reset and m2m intermediate tables. ↵Russell Keith-Magee
Thanks to d00gs for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8157 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-29Fixed #6095 -- Added the ability to specify the model to use to manage a ↵Russell Keith-Magee
ManyToManyField. Thanks to Eric Florenzano for his excellent work on this patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-29Fixed #7589 -- Added a way for post-table-creation SQL modifications to be ↵Malcolm Tredinnick
done for custom fields (needed by geo-django, but useful in other situations, too). Patch from Justin Bronn. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8133 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-26Fix #7910 -- Added a missing import used when "django-admin.py compilemessages"Malcolm Tredinnick
is run from a bad root directory. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-22Fixed #7847 -- Removed a whole bunch of unused imports from throughout the ↵Adrian Holovaty
codebase. Thanks, julien git-svn-id: http://code.djangoproject.com/svn/django/trunk@8046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-18Merged the newforms-admin branch into trunk.Brian Rosner
This is a backward incompatible change. The admin contrib app has been refactored. The newforms module has several improvements including FormSets and Media definitions. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7967 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-11Fixed #7421 -- Corrected the condition used during syncdb to establish that ↵Russell Keith-Magee
a management module is or isn't available. This is to satisfy non-CPython implementations which can use different error messages. Thanks to Maciej Fijalkowski (fijal) for his help confirming the problem. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-11Fixed #7597 -- Added code to force the re-opening of the cursor connection, ↵Russell Keith-Magee
just in case a post-syncdb handler closes it. Thanks to keithb for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-11Fixed #6017 -- Modified the Lax parser to allow --settings and the other ↵Russell Keith-Magee
core management arguments to appear anywhere in the argument list. Thanks to Todd O'Bryan for the suggestion and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06Fixed #7643 -- Fixed an oversight from [7844].Malcolm Tredinnick
Now makemessages works in projects again. Based on a patch from Horst Gutmann. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-07-06Fixed #5522 -- Moved make-messages, compile-messages and daily-cleanup into ↵Malcolm Tredinnick
django-admin.py. They are now called "makemessages", "compilemessages" and "cleanup". This is backwards incompatible for make-messages.py and compile-messages.py, although the old executables still exist for now and print an error pointing the caller to the right command to call. This reduces the number of binaries and man pages Django needs to install. Patch from Janis Leidel. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-30Fixed #7572 -- Force the closure of the database connection at the end of ↵Russell Keith-Magee
fixture loading as a workaround for MySQL bug #37735. Thanks to Simon Litchfield for his help in narrowing down this issue. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-30Make sure we only create the minimum number of table indexes for MySQL.Malcolm Tredinnick
This patch simplifies a bunch of code for all backends and removes some duplicate index creation for MySQL, in particular (versions 4.x and later). Patch from Nis Jørgensen. Fixed #5671, #5680, #7170, #7186. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19Fixed #6650 -- Added UTF-8 encoding to SQL output provided by management ↵Russell Keith-Magee
commands. Thanks to farcaller for the suggestion. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-19Fixed #6719 -- Added a --traceback option to syncdb to provide a stack trace ↵Russell Keith-Magee
when custom SQL loading fails. Also added documentation for the --traceback option. Thanks to guettli for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7704 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16Fixed #6497 -- Improved fixture error reporting by displaying the entire ↵Adrian Holovaty
traceback. Also, SystemExit and KeyboardInterrupt now exit the script properly. Thanks for the patch, Bastian Kleineidam git-svn-id: http://code.djangoproject.com/svn/django/trunk@7653 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-16Fixed #6654 -- Slightly refactored the way 'startproject' and 'startapp' ↵Adrian Holovaty
check for existing Python modules. Thanks, i_i git-svn-id: http://code.djangoproject.com/svn/django/trunk@7652 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-13Fixed #7436 -- Corrected a fix from [7615] that broke some test cases. Don't ↵Russell Keith-Magee
you just love unintended consequences? Thanks to telenieko for the report, and the buildbot for pointing out my mistake. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7629 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-12Fixed #7421 -- Improved syncdb implementation not to check for exact ↵Adrian Holovaty
exception text, in case of alternate Python implementation. Thanks, anto.cuni@gmail.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@7623 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-11Fixed #7254 -- Added an '--exclude' option to dumpdata, allowing specific ↵Russell Keith-Magee
applications to be removed from the dump output. Thanks to Carl Karsten for the idea and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7615 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-08Fixed #4371 -- Improved error checking when loading fixtures. Code now ↵Russell Keith-Magee
catches explicitly named fixture formats that are not supported (e.g, YAML fixtures if you don't have PyYAML installed), and fixtures that are empty (which can happen due to XML tag errors). Thanks to John Shaffer for the suggestion, and Keith Bussell for his work on the fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7595 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-06-08Fixed #6394: improved comment stripping in initial SQL files. Thanks, Thomas ↵Jacob Kaplan-Moss
Guttler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7591 bcc190cf-cafb-0310-a4f2-bffc1f526a37