summaryrefslogtreecommitdiff
path: root/django/core
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-30Fixed another case of reverse URL resolving that wasn't working.Malcolm Tredinnick
This is a similar situation to that fixed in r9087. We weren't merging multiple levels of include() calls together correctly. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9099 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-27Fixed #9038 -- Correctly handle URL patterns with the same name (or view name),Malcolm Tredinnick
declared independently and that differ only by argument signatures. Patch from Russell Keith-Magee. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9087 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 #9014 -- Check that we really are processing a POST before processingMalcolm Tredinnick
POST data. Some nice debugging form aaron to track this down. git-svn-id: http://code.djangoproject.com/svn/django/trunk@9064 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-17Fixed #8409 -- The runserver now uses conditional GET for admin media files, ↵Adrian Holovaty
instead of reloading the files off disk for every request. Thanks for reporting, andylowry git-svn-id: http://code.djangoproject.com/svn/django/trunk@9055 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 #8726 -- When doing reverse URL resolving, make sure we're consistentlyMalcolm Tredinnick
dealing with unicode strings throughout by promoting up from UTF-8 as necessary. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8777 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-31A rewrite of the reverse URL parsing: the reverse() call and the "url" ↵Malcolm Tredinnick
template tag. This is fully backwards compatible, but it fixes a bunch of little bugs. Thanks to SmileyChris and Ilya Semenov for some early patches in this area that were incorporated into this change. Fixed #2977, #4915, #6934, #7206. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8760 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-30Fixed #8622: accessing POST after a POST handling exception no longer throws ↵Jacob Kaplan-Moss
the server into an infinite loop. Thanks to vung for tracking this one down and fixing it. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8748 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-29Fixed #8673: fixed a missing import in `django.core.files.move`.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8720 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-28Fixed #8651: correctly deserialize objects with 0 for pk/fk.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8676 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8403 -- Changed the use of fcntl.flock() to fcntl.lockf(). On someMalcolm Tredinnick
systems, this will ensure fnctl-based file locking is always used, which means locking of NFS-mounted files should work. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #8221: added some better `NoReverseMatch` error strings. Thanks, mrts.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8672 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-28Fixed #7524: allow errors raised during import of a urlconf to bubble up.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8664 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Fixed #8454: added a FILE_UPLOAD_PERMISSIONS setting to control the ↵Jacob Kaplan-Moss
permissoin of files uploaded by the built-in file storage system. Thanks, dcwatson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8640 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Fixed #8455: a lack of permissions in `MEDIA_ROOT` no longer causes an ↵Jacob Kaplan-Moss
infinite loop when saving files. Thanks, carljm. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8639 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27FIxed #8156: `UploadedFile.__repr__` now returns a string, a good `__repr__` ↵Jacob Kaplan-Moss
should. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8636 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Fixed #7769: Added a couple missing file methods to `TemporaryUploadedFile`. ↵Jacob Kaplan-Moss
Thanks, Mads Sülau Jørgensen. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-27Removed oldforms, validators, and related code:Gary Wilson Jr
* Removed `Manipulator`, `AutomaticManipulator`, and related classes. * Removed oldforms specific bits from model fields: * Removed `validator_list` and `core` arguments from constructors. * Removed the methods: * `get_manipulator_field_names` * `get_manipulator_field_objs` * `get_manipulator_fields` * `get_manipulator_new_data` * `prepare_field_objs_and_params` * `get_follow` * Renamed `flatten_data` method to `value_to_string` for better alignment with its use by the serialization framework, which was the only remaining code using `flatten_data`. * Removed oldforms methods from `django.db.models.Options` class: `get_followed_related_objects`, `get_data_holders`, `get_follow`, and `has_field_type`. * Removed oldforms-admin specific options from `django.db.models.fields.related` classes: `num_in_admin`, `min_num_in_admin`, `max_num_in_admin`, `num_extra_on_change`, and `edit_inline`. * Serialization framework * `Serializer.get_string_value` now calls the model fields' renamed `value_to_string` methods. * Removed a special-casing of `models.DateTimeField` in `core.serializers.base.Serializer.get_string_value` that's handled by `django.db.models.fields.DateTimeField.value_to_string`. * Removed `django.core.validators`: * Moved `ValidationError` exception to `django.core.exceptions`. * For the couple places that were using validators, brought over the necessary code to maintain the same functionality. * Introduced a SlugField form field for validation and to compliment the SlugField model field (refs #8040). * Removed an oldforms-style model creation hack (refs #2160). git-svn-id: http://code.djangoproject.com/svn/django/trunk@8616 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-26Fixed #8490 -- Worked around a bug in flup 1.0.1 when working out the correctMalcolm Tredinnick
path_info setting in the WSGI handler. Thanks, Mike Richardson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8569 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 #8259 -- Handle an error situation that we should never see, but stillMalcolm Tredinnick
occurs for some reason (be liberal in what you accept, and all that). Patch from kevin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8495 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-23Fixed #8203 -- Fixed temporary file deleation on Windows and a couple of edgeMalcolm Tredinnick
cases on Unix-like systems. Patch from snaury. Testing and verification on Windows, Mac and Linux from cgrady and ramikassab. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8493 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-23Fixed #7747: Altered EmailMessage such that messages with long subject lines ↵Russell Keith-Magee
don't use tabs in their continutation sequence. Tabs in subjects cause problems with Outlook and Thunderbird. Thanks to Mark Allison <mark.allison@maplecroft.com> for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-22Fixed #8136: Added a signal emission when an error is raised handling an ↵Russell Keith-Magee
error. This was required for the test client to handle missing 404.html templates and errors in the 404.html template. Thanks to danfairs for the report and fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8464 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-19Fixed #8410 -- Added a missing piece of value encoding for the memcachedMalcolm Tredinnick
backend. Patch from trbs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8444 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 #5133 -- Explicitly close memcached connections after each requestMalcolm Tredinnick
(similar to database connection management). We can't effectively manage the lifecycle by pooling connections and recent versions of python-memcache can lead to connection exhaustion in some quite reasonable setups. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8418 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-15Fixed #7676 -- Modified serializer registration to be thread safe. Thanks to ↵Russell Keith-Magee
mrts for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8370 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-12Fixed #8134 -- Corrected serialization of m2m fields with intermediate ↵Russell Keith-Magee
models. Thanks to Rock Howard for the report, and kire for the test case. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8321 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-08-11Fixed #4948, a race condition in file saving. Thanks to Martin von Löwis, ↵Jacob Kaplan-Moss
who diagnosed the problem and pointed the way to a fix. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8306 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 #7830 -- Removed all of the remaining, deprecated, non-oldforms features:Gary Wilson Jr
* Support for representing files as strings was removed. Use `django.core.files.base.ContentFile` instead. * Support for representing uploaded files as dictionaries was removed. Use `django.core.files.uploadedfile.SimpleUploadedFile` instead. * The `filename`, `file_name`, `file_size`, and `chuck` properties of `UploadedFile` were removed. Use the `name`, `name`, `size`, and `chunks` properties instead, respectively. * The `get_FIELD_filename`, `get_FIELD_url`, `get_FIELD_size`, and `save_FIELD_file` methods for Models with `FileField` fields were removed. Instead, use the `path`, `url`, and `size` attributes and `save` method on the field itself, respectively. * The `get_FIELD_width` and `get_FIELD_height` methods for Models with `ImageField` fields were removed. Use the `width` and `height` attributes on the field itself instead. * The dispatcher `connect`, `disconnect`, `send`, and `sendExact` functions were removed. Use the signal object's own `connect`, `disconnect`, `send`, and `send` methods instead, respectively. * The `form_for_model` and `form_for_instance` functions were removed. Use a `ModelForm` subclass instead. * Support for importing `django.newforms` was removed. Use `django.forms` instead. * Support for importing `django.utils.images` was removed. Use `django.core.files.images` instead. * Support for the `follow` argument in the `create_object` and `update_object` generic views was removed. Use the `django.forms` package and the new `form_class` argument instead. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8291 bcc190cf-cafb-0310-a4f2-bffc1f526a37