summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2008-03-19Fixed #6789 -- Added some small amount of extra protection for learners tryingMalcolm Tredinnick
to pick a name for their project. Thanks, thejaswi_puthraya. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7320 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-19Fixed a corner case in management.setup_environ (it was triggered under ↵Jacob Kaplan-Moss
Cygwin, but also perhaps could happen elsewhere). Thanks, Doug Napoleone. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7316 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Added a new and improved Paginator class, which allows you to pass a Page ↵Adrian Holovaty
object to the template instead of 5 or 6 separate variables. ObjectPaginator still exists for backwards compatibility but issues a DeprecationWarning git-svn-id: http://code.djangoproject.com/svn/django/trunk@7306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #6687: added outlog/errlog options to runfcgi. Thanks, tamas.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7297 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-18Fixed #5574 -- Serialize a FileField using its filename from the database, notMalcolm Tredinnick
external URL. The problem showed up when reloading the data. Patch from Chris Henderson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-17Fixed #6492 -- Added bullet-proofing to isValidFloat validator. Thanks, ↵Malcolm Tredinnick
Bastian Kleineidam. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7258 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-10Fixed #6374: cross-app and circular FK constraints are now detected and ↵Jacob Kaplan-Moss
added correctly. Thanks, dready. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-08Fixed #6223 -- When determining if terminal supports color, don't call ↵Gary Wilson Jr
`isatty` if it doesn't exist, thanks mamadou. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7202 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-08Fixed #5595 -- Made `ModPythonRequest.__repr__` return a string instead of a ↵Gary Wilson Jr
unicode object. Fixes the printout of the request object in those server error e-mails I never get :) git-svn-id: http://code.djangoproject.com/svn/django/trunk@7200 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-03-07Fixed #6420 -- Corrected the handling of the --traceback option in loaddata. ↵Russell Keith-Magee
Thanks, Grzegorz Lukasik <hauserx@gmail.com>. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-29Updated a docstring on a couple of email functions to stop the complaints.Malcolm Tredinnick
It's deprecated for internal use, but the functions still exist. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7183 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-28Fixed #4701 -- sys.exit() will no longer get swallowed by the http handler. ↵Jacob Kaplan-Moss
Slightly backwards compatible, perhaps, but you really shouldn't be sys.exit()ing in view code anyway. Thanks, Bastian Kleineidam. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-22Fixed #6436 -- Added check for absolute paths in fixture loading. Fixtures ↵Russell Keith-Magee
specified as an absolute path were being loaded multiple times. Thanks to btoll@bestweb.net for the report, fix, and catch of a duplicate ticket. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7145 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-19Fixed #6481 -- Fixed a bunch of import problems (and some whitespace cleanups).Malcolm Tredinnick
Found by Bastian Kleineidam with help from pyflakes. Thanks. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-12Further clarification of help message for ./manage.py sqlall, this time ↵Russell Keith-Magee
using the same term used in the documentation. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-12Clarified help message for ./manage.py sqlallRussell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7105 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-02-03Fixed #6305 -- Always emit the got_request_exception signal, even whenMalcolm Tredinnick
DEBUG=True. Patch from Collin Anderson. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7068 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-28Fixed #6419 -- Fixed verbosity level checks in loaddata command that were ↵Gary Wilson Jr
raised to unobtainable levels in [6883]. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7037 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-04Fixed the Oracle backend mangling colorized unique_together SQL.Ian Kelly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02Fixed #6299 -- Fixed an indentation error in django/core/mail.py introduced ↵Adrian Holovaty
in [6987] git-svn-id: http://code.djangoproject.com/svn/django/trunk@6989 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-01-02Fixed #5887 -- Consolidated some duplicate code in SafeMIMEText and ↵Adrian Holovaty
SafeMIMEMultipart. Thanks, Carl Karsten git-svn-id: http://code.djangoproject.com/svn/django/trunk@6987 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-19Fixed #6139 -- When sending email, made sure that the "to" and "bcc" ↵Malcolm Tredinnick
sequences have the same type before concatenating. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6953 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Fixed #5596 -- Changed the static view for the development server so that ↵Malcolm Tredinnick
Django doesn't crash if somebody tries to serve a 200MB file. Patch from eibaan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6939 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Fixed [6932] so that "django-admin.py help dumpdata" works again.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Fixed #4431 -- Added a --traceback option for dumpdata and loaddata (whichMalcolm Tredinnick
shows how it can be used for other commands as well). Thanks, dakrauth. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Fixed #6155 -- Fixed dumpdata to work with the default model manager (necessaryMalcolm Tredinnick
for the rare cases when the 'objects' manager might not even exist). Based on a patch from Michael Trier. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6932 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Fixed #6110 -- Mark the python format serializer as for internal use only. ↵Malcolm Tredinnick
Thanks, empty. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-17Generic relations should not try to drop their related table in "sqlreset".Malcolm Tredinnick
Fixed #3480. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6921 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-11Fixe #6131 -- Fixed a problem with expired keys in the locmem cache. Based ↵Malcolm Tredinnick
on a patch from sherbang. In passing, changed the get() method to use a similar style to has_key() and made add() fractionally faster with the same sort of change (only compute time.time() when we really need it). git-svn-id: http://code.djangoproject.com/svn/django/trunk@6904 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Fixed a bug introduced in [6891]: the "safe" YAML serializer can't handle ↵Jacob Kaplan-Moss
time types out of the box. I've worked around the bug by coercing times to strings, which is far from perfect. However, it's better than a Python-specific "!!python/time" type which would break interoperability (which was the goal of switching to the safe mode in the first place). git-svn-id: http://code.djangoproject.com/svn/django/trunk@6893 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Fixed #5268: the YAML serializer now uses yaml.safe_dump() instead the plain ↵Jacob Kaplan-Moss
yaml.dump(); this makes YAML dumps more portable, and also removes the crufty '!!python/unicode' business. Thanks, poelzi. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6891 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Fixed #6099: the filebased cache backend now uses md5 hashes of keys instead ↵Jacob Kaplan-Moss
of sanitized filenames. For good measure, keys are partitioned into subdirectories using the first few bits of the hash. Thanks, sherbang. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6887 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Changed loaddata to display 'No fixtures found' and 'Loading XXX fixtures' ↵Adrian Holovaty
only if verbosity level is greater than 2. It's not necessary to display those messages all of the time, and they're confusing to new users. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6883 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Undid [6718], as it broke 'django-admin.py runserver' for a reason I haven't ↵Adrian Holovaty
figured out yet git-svn-id: http://code.djangoproject.com/svn/django/trunk@6871 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-04Cleaned up some docstrings and removed some unnecessary long-line breaking ↵Adrian Holovaty
in django/core/management/__init__.py as I try to figure out why django-admin.py runserver has stopped working git-svn-id: http://code.djangoproject.com/svn/django/trunk@6870 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #5002 -- Fixed a small problem when running via pdb. Thanks, ↵Malcolm Tredinnick
dummylink@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6853 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #3511 -- Changed QuerySet.get() to return a MultipleObjectsReturned ↵Malcolm Tredinnick
exception, rather than an assertion error. Thanks, Gary Wilson and cheeming. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6838 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #3323 -- More robust error handling for related objetcs. Thanks, GregMalcolm Tredinnick
Kopka and shaleh. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6835 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #5743 -- Tweaked the exceptions raised when importing settings so that weMalcolm Tredinnick
cooperate with Python's standard help() function. Patch from ionut_bizau and Ben Slavin. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #6038 -- Don't hide some types of errors in syncdb. Thanks, Thomas ↵Malcolm Tredinnick
Güttler. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6829 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Re-organized imports in handler modules to adhere to Django coding style.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6826 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-12-02Fixed #6086 -- Deprecate the "simple" cache backend in favour of "locmem".Malcolm Tredinnick
Thanks, Paul Bissex. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6822 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-30Fixed some type checks in the development server. Fixed #6063.Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6780 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-30Edited docs and docstring changes from [6572] (new cache add() method)Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-30Edited docstring changes from [6480] -- moved the intense parameter ↵Adrian Holovaty
definitions into comments git-svn-id: http://code.djangoproject.com/svn/django/trunk@6767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-26Fixed #5943 -- Modified django-admin.py to work like manage.py whenever a ↵Russell Keith-Magee
--settings option is provided. Thanksfor the patch, Todd O'Bryan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-21Fixed #5981 -- Fixed failing regression test when using locmem cache ↵Gary Wilson Jr
backend. Changed `add` to pickle the value as is done in `set`. Based on patch from mattmcc. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6709 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-19Fixed #5932 -- Use `self.pages` and not `self._pages` in `_get_page_range` ↵Gary Wilson Jr
so that an exception is not raised if `self.page_range` is accessed before `self.pages`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-11Fixed #5898 -- Changed a few response processing paths to make things harder ↵Malcolm Tredinnick
to get wrong and easier to get right. Previous behaviour wasn't buggy, but it was harder to use than necessary. We now have automatic HEAD processing always (previously required ConditionalGetMiddleware), middleware benefits from the Location header rewrite, so they can use relative URLs as well, and responses with response codes 1xx, 204 or 304 will always have their content removed, in accordance with the HTTP spec (so it's much harder to indavertently deliver invalid responses). Based on a patch and diagnosis from regexbot@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6662 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-11-04Fixed #5729 -- For MySQL (only), always delay the creation of foreign keyMalcolm Tredinnick
references, for all tables, until after the table has been created. This means that when using the InnoDB storage engine, true foreign key constraints are created (inline "REFERENCES" are ignored by InnoDB, unfortunately). Fully backwards compatible. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6650 bcc190cf-cafb-0310-a4f2-bffc1f526a37