Commit Graph

6194 Commits

Author SHA1 Message Date
Malcolm Tredinnick b5ac7f7918 [1.0.X] Added some better error reporting and path handling when creating template paths.
We now raise UnicodeDecodeError for non-UTF-8 bytestrings (thanks to Daniel
Pope for diagnosing this was being swallowed by ValueError) and allow UTF-8
bytestrings as template directories. (The last bit is arguably a feature-add,
but we allow UTF-8 bytestrings everywhere else, so I'm counting it as a bugfix.)

Refs #8965.

Backport of r9161 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9162 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 06:37:53 +00:00
Malcolm Tredinnick c201d14269 [1.0.X] Fixed #5753 -- Allow createsuperuser to work in situations where there
might be a valid password database entry for the current user id.

Backport of r9158 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9159 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 04:56:50 +00:00
Karen Tracey 48f4388c8b [1.0.X] Fixed #9212: Added code to check the xgettext version, and if it is lower 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.
Backport of r9155 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9156 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-06 01:38:22 +00:00
James Bennett 075274203f [1.0.X]: Add note to 1.0 porting guide about removal of dictionary access to HTTP request objects
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9154 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 16:04:55 +00:00
Malcolm Tredinnick 9273575e6b [1.0.X] Fixed #9068 -- Fixed a couple of typos in InsertQuery.clone(). Thanks, rush.
Backport of r9150 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9151 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 11:57:11 +00:00
Malcolm Tredinnick 89c2fba23b [1.0.X] Fixed #9283 -- Deliberately silence one deprecation warning raised by python 2.6.
Backport of r9148 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9149 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 11:41:19 +00:00
Malcolm Tredinnick 5da08047b9 [1.0.X] Changed the "write your own settings" recommendation to mention that Django
uses tuples, but not making it a recommendation. That might head off the endless
tuples vs. lists debates.

Fixed #8846.

Backport of r9146 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9147 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 09:00:07 +00:00
Malcolm Tredinnick 9b5c2293c6 [1.0.X] Fixed #8964 -- Added a note that MyISAM may not necessarily be the default
storage engine for MySQL. Some packagers seem to like causing confusion.

Backport of r9143 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 07:00:58 +00:00
Malcolm Tredinnick ee9c6ae269 [1.0.X] Fixed a typo and clarified how django.core.mail.outbox works in the testing framework. Fixed #9237.
Backport of r9140 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9142 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:41:15 +00:00
Malcolm Tredinnick 2993ef3d7e [1.0.X] Added django.contrib.markup to the docs contents page. Thanks, Marc Fargas.
Refs #9237.

Backport of r9139 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9141 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:40:47 +00:00
Malcolm Tredinnick 01b6e55f20 [1.0.X] Fixed #9257 -- Fixed a small mismatch in text in part 2 of the tutorial.
Backport of r9134 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:23:23 +00:00
Malcolm Tredinnick e15bdf767e [1.0.X] Fixed #9291 -- Tweaked a piece of example code slightly to set a good
example for others (now uses an encoding that is guaranteed to work for XML
consumers).

Backport r9133 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9137 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:22:58 +00:00
Malcolm Tredinnick f9e78ed612 [1.0.X] Fixed #9301 -- Correct a markup typo in the docs.
Backport of r9132 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:22:25 +00:00
Malcolm Tredinnick b0be5af39c [1.0.X] Fixed #9300 -- Typo fix in docs.
Backport of r9131 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9135 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:21:52 +00:00
Malcolm Tredinnick 571b159dd3 [1.0.X] Fixed #9259 -- Fixed a validation error for Spanish identity card numbers.
Patch from Marc Garcia.

Backport of r9129 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9130 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 06:00:55 +00:00
Malcolm Tredinnick 245399becb [1.0.X] Fixed #8963 -- Use the require_POST decorator instead of doing things manually in one of the comment views. Thanks, zgoda.
Bakcport of r9121 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9128 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:21:14 +00:00
Malcolm Tredinnick e88b70b779 [1.0.X] Fixed #9100 -- Added a missing CSS class to a submit button.
Thanks, mordyovits and thejaswi_puthraya.

Backport of r9120 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9127 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:20:40 +00:00
Malcolm Tredinnick ccc2387fd2 [1.0.X] Add internationalisation support to the comment templates. Fixed #8868, #8905
Thanks to zgoda for a patch that did most of the internationalisation part.

Backport of r9119 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9126 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:20:00 +00:00
Malcolm Tredinnick 389307025f [1.0.x] Fixed #8803 -- Allow authenticated users without first_name/last_name values set to post comments.
Backport of r9118 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:18:25 +00:00
Malcolm Tredinnick 4393fea682 [1.0.X] Fixed #8869 -- Fixed comments templates to be well-formed XHTML.
Based on a patch from zgoda.

Backport of r9117 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:17:29 +00:00
Malcolm Tredinnick 769709e994 [1.0.X] Fixed #8879 -- Used ungettext instead of ngettext in the comments framework.
Patch from zgoda.

Backport of r9116 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9123 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:16:38 +00:00
Malcolm Tredinnick 3e2803f3e8 [1.0.x] Fixed #9141 -- Removed two templates from django.contrib.comments that were not being used.
Backport of r9115 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9122 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:16:08 +00:00
Malcolm Tredinnick e4bc9e1f4a [1.0.X] Altered a failing url template tag test to work more reliably.
There's no guarantee about the order in which ambiguous patterns are resolved.
The solution is "don't do that" and avoid ambiguity.

This is a port of r9113 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9114 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-05 05:02:55 +00:00
Karen Tracey b7f40091ad Fixed #9260: [1.0.X] Correct version calculation code so setup.py works on 1.0.X branch. Thanks for the report Warren.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9109 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-01 17:26:40 +00:00
James Bennett a59c27ac5d [1.0.X] Apply fix from [9107]
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9108 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-10-01 01:23:55 +00:00
James Bennett 9971852234 [1.0.X] Apply doc fix from [9105]; refs #9255.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9106 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-30 22:31:06 +00:00
James Bennett f585dea14e [1.0.X] Port Adrian's doc fix from [9101] and publicly shame him for forgetting to apply it here.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9104 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-30 22:25:41 +00:00
James Bennett 5e272e0f1a Update django.VERSION in 1.0.x branch per previous discussion
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9102 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-30 17:49:26 +00:00
Malcolm Tredinnick b17453bbc9 [1.0.X] Fixed another case of reverse URL resolving that wasn't working.
This is a similar situation to that fixed in r9087. We weren't merging
multiple levels of include() calls together correctly.

Backported from r9099 on trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9100 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-30 05:57:13 +00:00
Jacob Kaplan-Moss fe19e9f4af Created 1.0.X release branch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-29 15:40:49 +00:00
Malcolm Tredinnick e9f647e11f Fixed #9234 -- Typo fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9093 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-29 04:09:39 +00:00
Nicola Larosa e625920a47 Italian translation: one correction; thanks, Marco Beri.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-28 10:34:51 +00:00
Malcolm Tredinnick baa960209f Fixed Queryset.dates() in the presence of extra-select columns.
Any extra(select=...) columns can be ignored in the SQL for dates, since we are
only interested in extracting distinct date values. We were previously
including them by accident and it was generating incorrect SQL.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-28 04:36:10 +00:00
Malcolm Tredinnick 4eb26b1659 Restored documentation about pickling QuerySets (and how to only pickle the
details for the query, rather than the results) from r7499.

These were accidentally nuked in the docs refactor. We know who the offenders
were. They will be made to sit in the corner on the naughty mat for a while.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9090 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-28 03:08:30 +00:00
James Bennett 788e6c081b Use correct m2m join table name in LatestCommentsFeed
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9089 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-28 02:55:56 +00:00
James Bennett cc72e64e19 Fixed #9203: Restore correct ordering for LatestCommentsFeed
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-28 02:50:09 +00:00
Malcolm Tredinnick 15b0158e39 Fixed #9038 -- Correctly handle URL patterns with the same name (or view name),
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-27 06:14:11 +00:00
Malcolm Tredinnick 6c7cf34d69 Fixed #9171 -- Fixed a few places where we were assuming lists instead of
generic sequences in ModelForm structures. Patch from mrmachine.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@9086 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-27 05:57:10 +00:00
Malcolm Tredinnick edabc4aca1 Fied #9169 -- Fixed a typo in a docs example. Thanks, jeremyb.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9085 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-27 03:25:42 +00:00
Russell Keith-Magee 48d41cf78e Fixed #8371: Added a note warning Windows users about the use of forward slashes when specifying the DATABASE_NAME setting.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9084 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-22 11:10:39 +00:00
Russell Keith-Magee 54f962c0bf Fixed #8967: Added documentation for the 'through' option on a many-to-many field in the fields reference documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9083 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-22 11:07:35 +00:00
James Bennett 5563362c4c Add some docstrings to the base classes for management commands. Refs #9170.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9082 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-22 06:03:24 +00:00
Malcolm Tredinnick 922aba3def Fixed a missing variable initialisation deep in the Query bowels.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9081 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-22 00:31:22 +00:00
Karen Tracey fd366a8531 Fixed #7582: Removed checks that prevented null=True ForeignKey fields from being sortable in Admin. Post queryset-refactor there seems no reason to disallow this.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9080 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-21 16:57:26 +00:00
Karen Tracey 0ededc611f Fixed 8984: Only include a "Documentation" link on change password and change password done pages if admin docs have been configured.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9079 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-21 16:15:09 +00:00
James Bennett 1b733aa10d Fixed #9149: Fixed reST error in syndication docs
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9078 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-21 07:43:58 +00:00
Wilson Miner 936b8ea11b Added a generic "button" class to the admin styles to allow applying the standard admin button styles to arbitrary elements in the future. Should have no effect on existing code.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9077 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-20 22:33:24 +00:00
Jacob Kaplan-Moss af68a0ccd8 Fixed heading levels in docs/internals/committers
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9072 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-19 19:45:54 +00:00
Jacob Kaplan-Moss de9acabf12 Updated contributing documentation to contain the new release process and updated information about branches using DVCSes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9071 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-19 19:44:10 +00:00
Karen Tracey 060919afa1 Fixed #9129 -- Restored a force_unicode that was lost when unicode changes were merged to newforms-admin. Thanks Ricardo & Ramiro.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@9070 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2008-09-18 17:10:16 +00:00