summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2007-10-31Fixed #5816 -- Fixed a regression from [6333] that generates incorrect ↵Gary Wilson Jr
cookie "expires" dates when using a locale other than English. Introduced `http_date` and `cookie_date` utility functions. Thanks for the report Michael Lemaire. Thanks for the patch Karen Tracey and `SmileyChris`. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6634 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27Wrapped some long lines and orginized imports.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6622 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27Fixed #5824 -- For the `startapp` command, pass the true project name to the ↵Gary Wilson Jr
`copy_helper` function instead of the name of the project's parent directory. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6621 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-27Added to docstring of `setup_environ` about what the function returns.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21Fixed #3496 -- Handle the case of missing (and hence '0') Content-Length headerMalcolm Tredinnick
in a POST to the wsgi handler. Based on a patch from Mikko Ohtamaa. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6592 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21Fixed "django-admin.py --version" so that it doesn't print the version stringMalcolm Tredinnick
twice. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21Fixed #3265 -- Made it a validation error to have field names with trailingMalcolm Tredinnick
underscores. Allowing these would enable peopleto write ambiguous queryset filters (plus makes parsing filters much harder). git-svn-id: http://code.djangoproject.com/svn/django/trunk@6590 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21Fixed a bug in the db cache backend introduced in [6572].Malcolm Tredinnick
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6589 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-21Fixed #5732 -- Catch all possible errors when importing a URLConf file. ThisMalcolm Tredinnick
leads to error messages that contain the name of the problem file (useful when the problem is part of an include() import). git-svn-id: http://code.djangoproject.com/svn/django/trunk@6584 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #4831 -- Added an "add" cache key method, for parity with memcached'sMalcolm Tredinnick
API. This works for all cache backends. Patch from Matt McClanahan. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6572 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Fixed #5778 -- Changed the way we detect if a string is non-ASCII when creatingMalcolm Tredinnick
email headers. This fixes a problem that was showing up on some (but not all) systems. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6551 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-20Slightly changed the way we handle non-UTF-8 encoded URIs (see [6475]). Made itMalcolm Tredinnick
easier to subclass the current behaviour, if needed. Fixed #5738. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6550 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-19Django coding style fixes.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-13Removed unneeded use of `len()` in a couple expressions.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6483 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-13Removed an unused import and a duplicate import.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6482 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-13Removed trailing whitespace.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6481 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-13Added docstring to `copy_helper` function.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-13Removed unused itertools import and organized imports to adhere to PEP 8.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-13Some Django coding style fixes.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-13Fixed #5738 -- Fixed bug with defective Unicode strings in a URLAdrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6475 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-10-06Refs #5690 -- Changed path joining to use `os.pardir` instead of `'..'`.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6456 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-27Re-organized imports to adhere to PEP 8.Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-27Removed unused import, unneeded due to [4144].Gary Wilson Jr
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6429 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-27Fixed #5604 -- Check for use of HTTPS by looking at the `wsgi.url_scheme` ↵Gary Wilson Jr
environment variable instead of the `HTTPS` environment variable since `wsgi.url_scheme` is required by the WSGI spec, while `HTTPS` is not. Thanks, ramiro. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-22Fixed #5566 -- Fixed typo from [6042]. Thanks to thomas@gumption.com and mir ↵Russell Keith-Magee
for bringing attention to this. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6404 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-21Fixed misleading comment from [6402].Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6403 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-21Fixed #5564 -- Fixed handling of the ProjectCommand used by startapp.Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6402 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-21Clean up of the command line argument error processing from [6400].Russell Keith-Magee
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6401 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-21Fixed #5516 -- Added the ability for applications to define their own ↵Russell Keith-Magee
management commands. Pieces of this patch taken from a contribution by Todd O'Bryan. Thanks Todd. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6400 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-16Fixed #4710 -- Improved mod_python HTTPS checking. Thanks, Aaron Maxwell, ↵Malcolm Tredinnick
SmileyChris and Graham Dumpleton. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6359 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-16Fixed #4049 -- Improved error handling in auth() context processor. Based on ↵Malcolm Tredinnick
a patch from gregorth. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6356 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed two more instances of bug #4827 in the management code.Ian Kelly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6298 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Added a get_host() method to HttpRequest. There is still an http.get_host() ↵Malcolm Tredinnick
version in place, so this is fully backwards compatible. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6296 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5109 -- Pass the request object to any exception signal handler. ↵Malcolm Tredinnick
Thanks, Collin Anderson. This is fully backwards compatible, despite the addition of an extra argument. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5242 -- Fixed table processing for some databases with case ↵Malcolm Tredinnick
insensitive tables. Patch from Filip Wasilewski. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6291 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Variable renaming. I didn't feel comfortable with the tricky re-aliasing in ↵Malcolm Tredinnick
the line table_list=table_list(). git-svn-id: http://code.djangoproject.com/svn/django/trunk@6290 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5443 -- Handle lack of os.access() and os.chmod() in Jython. Thanks, ↵Malcolm Tredinnick
Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6281 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #5486 -- Worked around the lack of os.getpid() in Jython, whilst still ↵Malcolm Tredinnick
using it for CPython. Patch from Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #3036 -- Fixed some doctest strings that were failing. Thanks to pterk ↵Russell Keith-Magee
for the original patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6268 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-15Fixed #4714 -- Modified serializers to handle None primary keys correctly. ↵Russell Keith-Magee
This slightly changes the output format for primary keys on JSON and YAML serializers (PKs will be output as 1, rather than "1". However, fixtures in the old format will still load ok. Thanks for the patch, pigletto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6264 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Negligible formatting change to [6211]Adrian Holovaty
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6241 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Added more dict-like methods to HttpResponse as part of the response.headers ↵Jacob Kaplan-Moss
-> response._headers move, and fixed a few direct uses of response.headers in Django itself. Thanks to PhiR for tracking down and slaying these bugs. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6235 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #3381 - manage.py shell now respects PYTHONSTARTUP/.pythonrc.py.Jacob Kaplan-Moss
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6231 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed the breakage in [6164] in a different, better way: HttpResponse now ↵Jacob Kaplan-Moss
implements __contains__ along with __get/set/delitem__, as it should. This is a bit more robust, and should prevent similar breakage from user code. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6221 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Case-insensitive HttpResponse headers ([6212]) broke absolute URL redirects ↵Jacob Kaplan-Moss
([6164]); this fixes the breakage. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5445: added some compatibility code for the lack of __iter__ in ↵Jacob Kaplan-Moss
Jython 2.2. Thanks, Leo Soto. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6211 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5376 -- Added --addrport option to the 'testserver' command. Thanks, ↵Adrian Holovaty
toddobryan git-svn-id: http://code.djangoproject.com/svn/django/trunk@6204 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5286 -- Fixed non-HTML output bug in adminindex command. Thanks, ↵Adrian Holovaty
dan.fairs@gmail.com and piranha git-svn-id: http://code.djangoproject.com/svn/django/trunk@6199 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #5218: Made Oracle create autoinc triggers using the correct name Ian Kelly
of the AutoField column rather than always assume "ID". git-svn-id: http://code.djangoproject.com/svn/django/trunk@6195 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2007-09-14Fixed #3848 -- Added more comprehensive checks to ImageField validation, ↵Russell Keith-Magee
checking for image truncation or corruption. Thanks to Andrew C <andrewc-djangotrac1@piffle.org> for the patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6175 bcc190cf-cafb-0310-a4f2-bffc1f526a37