Compare commits

..

944 Commits

Author SHA1 Message Date
Ramon Moraes
609d5e9f85 [1.6.x] Updated xhtml2pdf URL in docs. 2016-02-16 07:04:43 -05:00
Luke Plant
4e26a84a12 [1.6.x] Corrected example code for get_query_set upgrade in 1.6 release notes
The conditional setting of `get_query_set` is required for correct behaviour
if running Django 1.8. The full gory details are here:

http://lukeplant.me.uk/blog/posts/handling-django%27s-get_query_set-rename-is-hard/

Backport of f87e552d9842ff9591a9c51ebdb5f96e4dd54b00 from master
2015-07-08 11:10:18 +01:00
Tim Graham
019eaacefc [1.6.x] Fixed sphinx errors in docs. 2015-04-13 09:42:43 -04:00
Tim Graham
b178c02785 [1.6.x] Added link to download page to find supported versions.
Backport of 8c4827ec1d44fee05db189766174c115795a495e from master
2015-04-04 08:00:39 -04:00
Joost Rijneveld
f25250fd76 [1.6.x] Fixed typo in docs/ref/templates/builtins.txt
Backport of 48ddc66219deaac2aa5fa3d2cb0f420404d6b8ec from master
2015-03-31 21:22:10 -04:00
Kostochko Dmitriy
fb069da49e [1.6.x] Fixed typo in docs/topics/cache.txt
Backport of d026eb63666a34382912cf68af75492fc583b9db from master
2015-03-31 21:16:39 -04:00
David Seddon
1e03a662fc [1.6.x] Corrected typo in documentation
Backport of 0f6f80c2e7736ec4e2aa40287fe8c37ffff0a783 from master
2015-03-25 13:44:36 -04:00
David Seddon
48f5adf308 [1.6.x] Refs #14645 -- Documented bug with exclude() and multi-value relations
Backport of 6770b7ecd208a0746f181e54202fb829460c6490 from master
2015-03-20 17:52:19 -04:00
Tim Graham
999c31426a [1.6.x] Post-release version bump. 2015-03-18 20:18:04 -04:00
Tim Graham
9d915ac1be [1.6.x] Bumped version for 1.6.11 release. 2015-03-18 08:48:39 -04:00
Tim Graham
5510f07071 [1.6.x] Made is_safe_url() reject URLs that start with control characters.
This is a security fix; disclosure to follow shortly.
2015-03-18 08:47:43 -04:00
Tim Graham
b6b3cb9899 [1.6.x] Fixed an infinite loop possibility in strip_tags().
This is a security fix; disclosure to follow shortly.
2015-03-18 08:47:16 -04:00
Tim Graham
581a43948f [1.6.x] Added stub release notes for security releases. 2015-03-18 08:46:36 -04:00
Ian Lee
fc2ec51941 [1.6.x] Fixed typo in docs/howto/custom-template-tags.txt.
Backport of 7614efa2f9e169749ab109aab909fbc244fd76a9 from master
2015-03-13 08:14:40 -04:00
Calvin Jeong
412137a1e8 [1.6.x] Fixed typo in docs/ref/database.txt
Backport of cefbbb9db3410f757532e0f968e76a8fd9e7ce3b from master
2015-03-10 07:12:54 -04:00
Tim Graham
9cfcdd03e3 [1.6.x] Fixed typo in docs/howto/custom-template-tags.txt
Backport of 63f2dd4ad774d39fc7bbe05492d30efc45e4e7a9 from master
2015-03-09 07:06:43 -04:00
Aymeric Augustin
7d3418c9cd [1.6.x] Improved get_media_prefix template tag example.
Backport of 9a4a9a8a49ed3e38f3038b8d6fc7c405256271f1 from master
2015-03-05 10:00:17 -05:00
Andrew Pinkham
c5a8b442bd [1.6.x] Fixed #24439 -- Removed incorrect make_object_list attributes in CBV docs.
Backport of fea45eff5a2f2ad10b2788603db80e5a4fe6be06 from master
2015-03-02 13:33:52 -05:00
Ian Lee
7a30dc87ad [1.6.x] Added syntax highlighting for apache code blocks
Backport of fde4857fb83101d27ae4cb3552a6a6cf20d3d8ce from master
2015-03-02 12:37:38 -05:00
Ian Lee
089dcbc266 [1.6.x] Added a missing backtick in form wizard docs.
Backport of 56aa6fc00b7c6efcd02fcd9944b5d20cc8131ac9 from stable/1.7.x
2015-02-24 00:35:06 -05:00
Kenneth Kam
778ccee9bc [1.6.x] Fixed #23762 -- clarified CACHE_MIDDLEWARE_ANONYMOUS_ONLY deprecation in docs
Backport of e83aba0e2cce16cd1b32d1c172239a4e20867e95 from master
2015-02-23 09:24:21 -05:00
Tim Graham
d686c9b631 [1.6.x] Fixed casing of "GeoDjango". 2015-02-12 13:32:02 +05:00
Carl Meyer
64735731e0 [1.6.x] Fix an encoding preamble so the tests pass on 2.7.9.
It seems there was a change in the parsing of encoding preambles in Python
2.7.9, compared to previous 2.7.x Pythons. This is a backport of the only piece
of e520a73eeea6b185b719901ab9985ecef00e5664 that's needed to prevent an import
failure under 2.7.9.
2015-02-06 20:15:06 -07:00
Tim Graham
3b1dc45602 [1.6.x] Demoted "Installing a distribution-specific package" in install notes.
Backport of 281fc03474ac18c8281ed4cf289128c87bda2030 from master
2015-02-03 16:38:13 -05:00
minusf
16f533b2a4 [1.6.x] Fixed typos in docs/ref/forms/validation.txt.
Backport of 66f5aa9fa5d53ddd7fbdb7ddac39c429f0c1b4fd from master
2015-02-03 12:27:29 -05:00
Tim Graham
5104d93504 [1.6.x] Fixed broken links in class based views flattend index; refs #24250.
Backport of 9a391fbd6102176d576aa96ed3aeee9e9661b455 from master
2015-02-03 09:12:19 -05:00
Tim Graham
9316a04a9c [1.6.x] Fixed #24250 -- Corrected mistakes in FormMixin docs.
Backport of 5d193d042a3cc49033f0e8b5125913650d779496 from master
2015-02-03 08:43:05 -05:00
Tim Graham
829d62bd52 [1.6.x] Added 1.4.19 release notes. 2015-01-27 11:48:47 -05:00
Tim Graham
46f1f73610 [1.6.x] Designated Django 1.8 as the next LTS.
Backport of c38db4d7e072e9a5002cb4897d9104e5eaa292ed from master
2015-01-19 12:09:57 -05:00
Rick Hutcheson
cba3d8ab07 [1.6.x] Fixed a typo in the test responses docs.
Backport of 996292d6498d25c6b3e84435e82edeff5aaa0257 from master
2015-01-16 18:24:51 -05:00
Tim Graham
fb614ff4a7 [1.6.x] Fixed #23312 -- Marked an i18n test as expectedFailure on Windows/Python 3.
Backport of 433e7dd5076e492290a90130c9b3e2b1319b2f95 from stable/1.7.x
2015-01-16 10:34:46 -05:00
Luke Plant
b9101fa7a2 [1.6.x] Direct readers to format_html() in mark_safe() docs.
Backport of 4832c004e88a68b98b976b4f68a1c9fdb4ea3530 from master
2015-01-15 08:30:38 +00:00
Tim Graham
79df62f4d2 [1.6.x] Fixed a static view test on Windows.
Backport of a6f144fd4fee0090de3a99b1f50a4142722e7946 from master
2015-01-14 13:57:14 -05:00
Tim Graham
4c6bd574ad [1.6.x] Post-release version bump. 2015-01-13 14:15:55 -05:00
Tim Graham
e2fea7c714 [1.6.x] Bumped version for 1.6.10 release. 2015-01-13 13:12:22 -05:00
Tim Graham
f9de1998f9 [1.6.x] Added dates to release notes. 2015-01-13 13:10:25 -05:00
Tim Graham
d7a06ee7e5 [1.6.x] Fixed DoS possibility in ModelMultipleChoiceField.
This is a security fix. Disclosure following shortly.

Thanks Keryn Knight for the report and initial patch.
2015-01-13 13:10:11 -05:00
Tim Graham
553779c405 [1.6.x] Prevented views.static.serve() from using large memory on large files.
This is a security fix. Disclosure following shortly.
2015-01-13 13:10:11 -05:00
Tim Graham
72e0b03366 [1.6.x] Fixed is_safe_url() to handle leading whitespace.
This is a security fix. Disclosure following shortly.
2015-01-13 13:10:11 -05:00
Carl Meyer
d7597b31d5 [1.6.x] Stripped headers containing underscores to prevent spoofing in WSGI environ.
This is a security fix. Disclosure following shortly.

Thanks to Jedediah Smith for the report.
2015-01-13 13:10:11 -05:00
Tim Graham
f143e25883 [1.6.x] Added stub release notes for security releases. 2015-01-13 13:10:11 -05:00
Collin Anderson
a1a230382d [1.6.x] Fixed bad model example in admin docs.
Backport of e7771ec380a116dbef481001fb1ce664f5c7311e from master
2015-01-13 11:54:05 -05:00
Tim Graham
5e45c4f7c2 [1.6.x] Added 1.4.18 release notes.
Backport of ce17b045bf5629aac66f872c3f548205906e04db from master
2015-01-05 14:25:41 -05:00
Bibhas
3b76a82a26 [1.6.x] Fixed #24070 -- Added tutorial topics to doc index.
Backport of b738178825ec9378198d77ac69699513774f0884 from master
2015-01-03 08:49:17 -05:00
Tim Graham
8d21fee7ab [1.6.x] Post-release version bump. 2015-01-02 21:50:42 -05:00
Tim Graham
4747c2f17f [1.6.x] Bumped version for 1.6.9 release. 2015-01-02 20:40:43 -05:00
Tim Graham
22d3048676 [1.6.x] Added dates to release notes.
Backport of 15cd71ed24945ff7be5716580603fd65c0d45ef7 from master
2015-01-02 19:20:59 -05:00
Tim Graham
0114b9df13 [1.6.x] Updated six to 1.9.0.
Backport of 52f0b2b62262743d5f935ddae29428e661b5d8ea from master
2015-01-02 13:33:46 -05:00
Tim Graham
e17d98ff02 [1.6.x] Removed doc note about PasswordResetForm requiring an integer PK.
This limitation was lifted in refs #14881.

Backport of a7aaabfaf1fa4c20065ab1133d49f40d4de6b409 from master
2015-01-01 11:41:52 -05:00
Tim Graham
116d2098f6 [1.6.x] Fixed #24056 -- Fixed syntax highlighting in topics/testing/tools.txt.
Backport of 3d0c3a0482496fc1914a40ec3c3eb70e67f0d643 from master
2014-12-27 19:51:38 -05:00
Helen Sherwood-Taylor
2d0ae995d6 [1.6.x] Fixed #24041 -- Documented effect of changing a model instance's primary key.
Backport of 4ccdf6e57f49d7e981dcd88c1db65229b8b92487 from master
2014-12-24 15:07:32 -05:00
Frankie Robertson
70c965ad4f [1.6.x] Fixed #24035 -- Clarified docs on CACHE_MIDDLEWARE_KEY_PREFIX vs KEY_PREFIX
Backport of 446b50b90e9e60760618b236d8b0ea75a3b19d5a from master
2014-12-23 14:40:40 -05:00
David Cramer
d237aaa929 [1.6.x] Corrected scoping of savepoint example
Backport of 27f68f8659a648cc9ed3e71f690959ed8a130c5a from master
2014-12-22 07:51:19 -05:00
Tim Graham
0e3626260d [1.6.x] Added upgrade instructions for deprecated model _meta permission methods.
Backport of a3d96bee36040975ded8e3bf02e33e48d06f1f16 from master
2014-12-19 19:12:54 -05:00
Tim Graham
ab6df6419c [1.6.x] Removed need to update Python version support note on each new release.
Backport of 0c06f06131c613dc4173c83ea17c68c31835fc71 from master
2014-12-18 11:58:31 -05:00
Tim Graham
79561e7c3b [1.6.x] Corrected indentation in docs to prevent inadvertent blockquote.
Backport of c2d8da7555e3fef30c43f3ffe2e8963ca1f9fdd5 from stable/1.7.x
2014-12-18 11:35:35 -05:00
Markus Holtermann
b6c05b2b94 [1.6.x] Fixed display of lists after website redesign
Thanks Brian Jacobel for the report. refs django/djangoproject.com#197

Backport of c7786550c4ed396b8580db58f7da60e850894d19 from master
2014-12-17 08:26:36 -05:00
Alex Gaynor
3ac7d83ba5 [1.6.x] Fixed the formatting of one section of the security page
Backport of 104aaab7049afc6ef456fee52763f6d4f7dd575d from master
2014-12-16 19:01:29 -05:00
Tim Graham
89f9bf61bb [1.6.x] Updated advice on six.moves.range/xrange; refs #23812.
Backport of bc88ec550afd5ce972b8c902572c6447d89c0cc9 from master
2014-12-13 13:42:51 -05:00
Yohan Boniface
ec861bca69 [1.6.x] Fixed incorrect filter name in docs/topics/i18n/translation.txt.
Backport of 38fc463fbfb9b74c38f1e8c33e4c99bc2274a880 from master
2014-12-11 12:12:36 -05:00
Tim Graham
5fb7086b6b [1.6.x] Fixed #23974 -- Clarified wording of FileField.save/delete save parameter.
Thanks GreenAsJade.

Backport of 1aa41dd000e0779c8b1de1f8e7aa4a0f2f752655 from master
2014-12-08 13:18:32 -05:00
Jon Dufresne
30a12d6ca6 [1.6.x] Refs #23964 -- Added warning about case-insensitive, unique fields used with formsets
Backport of 4d27d72d149b714431b77f2f15bad1591a9602b7 from master
2014-12-08 12:58:40 -05:00
Vladimir Rutsky
43c55a7d4e [1.6.x] Fixed typo in docs/howto/deployment/wsgi/uwsgi.txt.
Backport of 1a408e42eef34d8302da06fcbeaccfa6395d1c92 from master
2014-12-07 12:26:26 -05:00
Tim Graham
e24ec760f1 [1.6.x] Fixed #23965 -- Mentioned that FieldFile inherits from File
Backport of 5281d9620d13386fd4403f7aa6b9a2afd9b5a93f from master
2014-12-06 11:52:26 -05:00
wrwrwr
62048bcd62 [1.6.x] Cleaned up a note in docs/topics/db/sql.txt.
Backport of 34a06d99e0fc96a0f0648bfde141d342e963e971 from master
2014-12-06 09:26:20 -05:00
Tim Graham
9abfe2c02d [1.6.x] Corrected example in Form.has_changed() docs.
Backport of ebfadb808043c689b19cfee818c10f63866ee8fc from master
2014-12-05 13:18:00 -05:00
Young Yang
fdbe038ced [1.6.x] Fixed #23955 -- Corrected formset fields in topic guide.
Backport of f0c7a6f36005d489e049236922abe0bd3a3eac2c from master
2014-12-05 11:33:20 -05:00
Tim Graham
7e47c3e6af [1.6.x] Fixed typo in aggregation docs. 2014-12-03 20:11:24 -05:00
Benjamin Bach
a87ade7e30 [1.6.x] Documented a current limitation of multiple table annotation; refs #10060.
Backport of 4b23a6c7a9232cc07ec95fe98be17efbd4449822 from master
2014-12-03 19:19:41 -05:00
Theodoros Ikonomou
51dff0f588 [1.6.x] Fixed typo in docs/ref/request-response.txt.
Backport of 49d034fff21213b369c08b39772e0437c3cc723b from master
2014-12-03 18:45:16 -05:00
Simon Charette
2fd16232b1 [1.6.x] Fixed #23754 -- Always allowed reference to the primary key in the admin
This change allows dynamically created inlines "Add related" button to work
correcly as long as their associated foreign key is pointing to the primary
key of the related model.

Thanks to amorce for the report, Julien Phalip for the initial patch,
and Collin Anderson for the review.

Backport of f9c4e14aeca7df79991bca8ac2d743953cbd095c from master
2014-11-25 13:48:50 -05:00
Simon Charette
c3a40af6ec [1.6.x] Added warning about get_inline_instances() permission checking; refs #23754.
Backport of e0d1f2684ae60573b209783f9fd4f9db163ad704 from master
2014-11-25 13:15:06 -05:00
Luke Plant
3c317064d8 [1.6.x] Further fixes to the migration notes for get_query_set
This rename is very tricky for the case of subclasses which define
get_query_set and haven't been updated yet, which applies to all projects in
the form of RelatedManager from Django 1.5.

Backport of 0c623da66406d1f20b5e26d497d57da5ad0de066 from master
2014-11-24 15:36:46 +00:00
Danilo Bargen
276332d85c [1.6.x] Fixed #23543 -- Added docs on testing management command output.
Backport of cdee8659763ee7044c1507bcd2202581b1744f0b from master
2014-11-24 10:29:24 -05:00
Luke Plant
1fa2e7aba1 [1.6.x] Better migration docs for get_query_set -> get_queryset
This way they won't need to fix things again when get_query_set disappears

Backport of 91e2780dfba5609b0f83d51aee1cf7e8fe78b1f7 from master
2014-11-24 10:13:17 +00:00
Kevin Ndung'u
db227d9d20 [1.6.x] Fixed #23900 -- Added missing imports in code example.
The Preventing header injection example included
classes that are not imported.

Thanks to Collin Anderson and Berker Peksağ for the
reviews.

Backport of 0d74209ef66111f29f122d5f5fdf8e2964890cc5 from master.
2014-11-23 23:08:41 +01:00
Alasdair Nicol
61be9373af [1.6.x] Added missing backticks to form validation docs
Backport of 38ab0f13fac428dd05dad02ef7c94da5035927ad from master
2014-11-20 11:10:09 -05:00
Michal Petrucha
614dd44d0d [1.6.x] Fixed #23817 -- Updated docs on QuerySet evaluation
Removed inaccurate info about partial evaluation after refs #18702.
Added information on modifying sliced QuerySets; refs #22503.

Backport of 327df551e89a505c5756becee97c40198f38aff2 from master
2014-11-20 09:35:41 -05:00
Peter Sagerson
2e7ca09940 [1.6.x] Fixes a race condition in the documentation.
The example for django.contrib.admin.ModelAdmin.get_form modifies
self.exclude. However, since ModelAdmin instances are global and have no
thread- or request-locality, this is not safe for concurrent
requests.[1] This updated documentation demonstrates a safe method to
override admin forms on a per-request basis.

[1] https://groups.google.com/forum/#!topic/django-users/AmoUDtEefyA

Backport of 0d1a9d203a970a82a2f81edf0ba7d4b55442fd78 from master
2014-11-16 14:33:29 +01:00
Erik Romijn
7323e15d87 [1.6.x] Fixed #23793 -- Clarified password reset behavior in auth docs
Backport of c5132382f081bd1b5a3618bbf23fa0cf720af14b from master.
2014-11-15 17:46:41 +01:00
Berker Peksag
159978e5c0 [1.6.x] Fixed #23665 -- Noted precedence of settings.USE_L10N in MONTH_DAY_FORMAT and YEAR_MONTH.
Backport of 4f90c99635149fae2f488c03f0b52303fe97e0aa from master
2014-11-15 09:56:35 +01:00
Tim Graham
f31e9c7a9d [1.6.x] Removed thread customizations of six which are now built-in.
Backport of 7ef81b5cdd4c8eda12aa7786484a0bfde00aaaa4 from master
2014-11-13 11:34:59 +01:00
Tim Graham
b078ccf8bf [1.6.x] Fixed #23774 -- Clarified QuerySet.order_by() and related models.
Backport of 11b7680d0e from master
2014-11-12 22:01:12 +01:00
aruseni
bcdfa0eb9a [1.6.x] Fixed a typo in 1.6 release notes.
Backport of 006451f894 from master
2014-11-10 15:39:09 +01:00
Tim Graham
df47f0c918 [1.6.x] Fixed #23785 -- Typo in docs/releases/1.6.txt
Backport of 091f5b5a4e from master
2014-11-09 22:12:21 +01:00
Tim Graham
61f20b42cd [1.6.x] Updated six to 1.8.0.
Backport of 81477c91f6 from master
2014-11-04 21:25:08 -05:00
Tim Graham
672015407b [1.6.x] Fixed #23744 -- Fixed typo in selenium testing example.
Thanks djbug for the report.

Backport of 6d0547c1ad from master
2014-11-01 12:37:29 -04:00
Tim Graham
78af6f134b [1.6.x] Added a warning about direct settings manipulation in tests.
Thanks Thomas Chaumeny for the initial patch.

Backport of 3f651b3e88 from master
2014-10-31 13:38:00 -04:00
Tim Graham
4a30e0aeb9 [1.6.x] Fixed #23735 -- Clarified that admindocs must be enabled to view template tag libraries in admin.
Thanks Aymeric Augustin for the report.

Backport of 19242c675f from master
2014-10-30 19:04:37 -04:00
Tim Graham
89df9d244d [1.6.x] Fixed #23736 -- Corrected the description of the value that silent_variable_failure uses.
Thanks Aymeric Augustin for the report.

Backport of e7cb4f2fba from master
2014-10-30 18:44:54 -04:00
Tim Graham
de88256854 [1.6.x] Fixed #23737 -- Recommended the render() shortcut more strongly.
Thanks Aymeric Augustin for the report.

Backport of f85fcc75e3 from master
2014-10-30 18:35:19 -04:00
Tim Graham
2365c7c230 [1.6.x] Fixed #23734 -- Replaced striptags in template filter overview since it has security implications.
Thanks Aymeric Augustin for the suggestion.

Backport of 08c5887f13 from master
2014-10-30 18:27:47 -04:00
Zan Anderle
5fa841d22f [1.6.x] Explained why admindocs omits model methods with arguments.
Backport of 9e3aaa5a46 from master
2014-10-30 18:19:51 -04:00
Berker Peksag
28033632f8 [1.6.x] Converted seealso directives to use 4 space indendation.
Backport of affc04060f from master
2014-10-30 14:46:31 -04:00
Raul Cumplido
10890606bc [1.6.x] Fixed #23725 -- Substituted AUTH_USER_MODEL for User in docs.
Backport of 68d3db8a7b from master
2014-10-30 08:30:38 -04:00
P.A. SCHEMBRI
aa9e90d849 [1.6.x] Added cross reference in admin docs to topic about saving objects in formsets.
Backport of 388c6038fd from master
2014-10-29 13:39:24 -04:00
Oliver Meinusch
deb11b0edf [1.6.x] Fixed QuerySet datetimes argument name in docs.
Backport of 6b39401baf from master
2014-10-27 19:50:25 -04:00
Tim Graham
54c2c5e048 [1.6.x] Fixed #23708 -- Corrected mod_wsgi docs reference to nonexistent comment in wsgi.py.
Thanks inglesp for the report.

Backport of e460b1c573 from master
2014-10-27 18:20:46 -04:00
Ilya Baryshev
0f14263c90 [1.6.x] Fixed documentation of make_password kwargs.
Backport of ed7c4df1ee from master
2014-10-27 06:43:35 -04:00
Tim Graham
2bc0dacd40 [1.6.x] Replaced dead links to python-distribute.org.
Backport of dc241fdfdf from master
2014-10-24 18:59:21 -04:00
Tim Graham
b087d9b5e6 [1.6.x] Fixed #23705 -- Removed unnecessary AliasMatch from example Apache config.
Thanks Keryn Knight for the report.

Backport of 4b0a45ce64 from master
2014-10-23 08:51:19 -04:00
Tim Graham
164970bac1 [1.6.x] Post-release version bump. 2014-10-22 13:32:32 -04:00
James Bennett
811508b051 [1.6.x] Bump version number for bugfix release. 2014-10-22 12:49:25 -04:00
Tim Graham
66be18ea58 [1.6.x] Added release dates to release notes.
Backport of 9dc782b631 from master
2014-10-22 12:24:30 -04:00
wrwrwr
ab0899fc6b [1.6.x] Fixed a typo in urlencode documentation.
Backport of 62a53bdf11 from master
2014-10-19 19:20:32 -04:00
Jon Dufresne
7d90fed1a0 [1.6.x] Fixed #23676 -- Rearranged sentence; "by default" applies only to max length
Backport of c1b9f99a81 from master
2014-10-18 06:56:18 -04:00
Tim Graham
a57f32411f [1.6.x] Fixed some intersphinx references.
Backport of babbf18999 from master
2014-10-16 20:10:59 -04:00
Ian Lee
5e4ddcc52d [1.6.x] Fixed pep8 in docs/topics/logging.txt
Backport of 947af46db3 from master
2014-10-15 18:56:09 -04:00
Tim Graham
0a31b4ea8e [1.6.x] Fixed #23631 -- Removed outdated note on MySQL timezone support.
Thanks marfire for the report.

Backport of 9db3653670 from master
2014-10-10 15:22:40 -04:00
Kostochko Dmitriy
e24b246e2b [1.6.x] Updated links in admin docs to use :ref:
per Sphinx docs: "Using ref is advised over standard reStructuredText
links to sections because it works across files, when section headings
are changed, and for all builders that support cross-references.

Backport of 13409b932a from master
2014-10-06 10:46:47 -04:00
Emmanuelle Delescolle
c5c4bfa12a [1.6.x] Fixed #23604 -- Allowed related m2m fields to be references in the admin.
Thanks Simon Charette for review.

Backport of a24cf21722 from master
2014-10-06 08:50:48 -04:00
Ismail Badawi
0aad1f1ea9 [1.6.x] Fixed #23597 -- Clarified the manager that {Single,Multiple}ObjectMixin.model uses.
Backport of e501d4c505 from master
2014-10-06 08:24:10 -04:00
Luke Plant
e71ef9b6f2 [1.6.x] Documented how to rename get_query_set if you are a library author
Backport of ca139bbfdf48bf59b0918a7d675cdc5d4ae60957 from master
2014-10-02 11:35:59 +01:00
jnothman
0004156873 [1.6.x] Added flat=False to signature of QuerySet.values_list()
Backport of 20f868bc5a from master
2014-10-01 13:10:18 -04:00
Tim Graham
011541d948 [1.6.x] Required numpy < 1.9 for tests; refs #23489.
Backport of 4743a94429 from stable/1.7.x
2014-09-29 19:58:00 -04:00
Duane Hilton
8c0851051d [1.6.x] Fixed #17638 -- Added crosslinks between topic and reference guides.
Thanks oinopion for the suggestion and jarus for the initial patch.

Backport of 054bdfeff1 from master
2014-09-29 18:17:39 -04:00
Thomas Grainger
9beca95eb0 [1.6.x] Added SuspiciousOperation to list of caught exceptions in testing docs.
Backport of 21683011d5 from master
2014-09-24 13:05:09 -04:00
Tim Graham
943716c8ee [1.6.x] Skipped a broken geoapp test on Oracle; refs #23504.
Backport of 729cd6a11a from master
2014-09-23 20:06:50 -04:00
Tim Graham
dd7346ed1d [1.6.x] Made a GIS test work on Oracle.
Thanks Josh Smeaton and Claude Paroz for advice.

Backport of 7add30df01 from master
2014-09-22 13:46:28 -04:00
Tim Graham
2376319ce0 [1.6.x] Skipped a broken GIS test on Oracle; refs #23504.
Backport of 828edc5ba9 from master
2014-09-22 13:43:35 -04:00
Tim Graham
8cee5875a6 [1.6.x] Removed unnecessary order_by() from a GIS test that crashed Oracle.
Oracle cannot order_by() a TextField; refs #23504.

Backport of 7fc13178d6 from master
2014-09-22 13:42:51 -04:00
Tim Graham
59d369db78 [1.6.x] Skipped some broken tests on Oracle GIS; refs #23504.
Backport of 7fce7f51ef from master
2014-09-22 13:39:39 -04:00
Ola Sitarska
a6c294a5a2 [1.6.x] Fixed #23529 -- Replaced comments tag library with humanize in docs
Backport of ee442e97da390b7136dc12b66ddfa70263a60b5c from master.
2014-09-21 17:34:23 +02:00
Tim Graham
aa1939c1d1 [1.6.x] Fixed #23491 -- Clarified tutorial 3.
Thanks diek for the suggestion.

Backport of 54fd84e432 from master
2014-09-17 08:43:44 -04:00
Joseph Dougherty
9a66244bd8 [1.6.x] Fixed #23499 -- Error in built-in template tag "now" documentation
Backport of ab8248361e0a7b4fc7684eaaa5891e16b8562683 from master.
2014-09-17 09:24:05 +02:00
Tim Graham
452587aba8 [1.6.x] Forwardported 1.4.16 release notes.
Backport of 0ae79014c0 from master
2014-09-13 09:23:46 -04:00
Gabe Jackson
31b5e3e010 [1.6.x] Added link to LogRecord attributes in logging.txt
Backport of c5b4145fca from master
2014-09-11 15:42:48 -04:00
Tim Graham
cc8486b6fe [1.6.x] Corrected indentation in a contrib.humanize test; refs #23340.
Thanks Zach Borboa for the report.

Backport of 96010ae15b from master
2014-09-10 12:27:14 -04:00
Tim Graham
eba54eb157 [1.6.x] Fixed typo in topics/forms/formsets.txt
Backport of e265112cd1 from master
2014-09-10 11:17:57 -04:00
Iain Dawson
e2d4677a1c [1.6.x] Fixed an instance of 'an' before a word beginning with a consonant.
Backport of ef8ef2a42d from master
2014-09-10 07:17:37 -04:00
Tim Graham
5767bc722f [1.6.x] Fixed #23350 -- Updated mod_wsgi auth example to use less memory.
Thanks Graham Dumpleton for the report.

Backport of c7f7432be5 from master
2014-09-09 09:33:04 -04:00
Simon Charette
a7af6ad96a [1.6.x] Fixed #23431 -- Allowed inline and hidden references to admin fields.
This fixes a regression introduced by the 53ff096982 security fix.

Thanks to @a1tus for the report and Tim for the review.

refs #23329.

Backport of 342ccbd from master
2014-09-08 14:05:26 -04:00
Octowl
731654197c [1.6.x] Fixed #23307 -- Clarified the way max_num limits the output of formsets.
Thanks velle for the report.

Backport of 5f3806b861 from master
2014-09-08 13:24:48 -04:00
Tim Graham
8635fa0b11 [1.6.x] Additional edits for refs #23340; thanks Loic.
Backport of 0a2bc6e6bd from master
2014-09-06 08:01:02 -04:00
Collin Anderson
c9e0afe2d3 [1.6.x] Fixed #23340 -- Corrected naturaltime docs to match behavior.
Thanks zachborboa for the report and blackguest for the patch.

Backport of 7353e26d5d from master
2014-09-06 07:48:34 -04:00
oromero
414e3fc59d [1.6.x] Fixed #22161 -- Documented send() with no recipients won't raise an exception.
Backport of 0f0a5c07f9 from master
2014-09-05 20:40:52 -04:00
Corey Farwell
289d38b731 [1.6.x] Fixed typo in docs/topics/db/transactions.txt.
Backport of 4db75925be from master
2014-09-03 11:49:37 -04:00
Tim Graham
f7c7ab0e89 [1.6.x] Added dates to release notes.
Backport of 0fd23545db from master
2014-09-02 21:35:07 -04:00
Tim Graham
900f28a2b5 [1.6.x] Post release version bump. 2014-09-02 21:08:02 -04:00
James Bennett
75d03c7755 [1.6.x] Update version number for bugfix release. 2014-09-02 15:54:38 -05:00
Alexey Efimov
24d84520aa [1.6.x] Added missing import in docs/ref/signals.txt.
Backport of 4a303341fc from master
2014-09-02 08:15:07 -04:00
Akis Kesoglou
b877697472 [1.6.x] Fixed #23370 -- defer() + select_related() crashed with inherited models.
Backport of 6613ea6e3f from master
2014-08-30 07:16:47 -04:00
Simon Charette
ce4057591a [1.6.x] Corrected a usage example of related_query_name.
Thanks to Petr Glotov for spotting this.

Backport of 05a8cef428 from master
2014-08-29 23:12:24 -04:00
Simon Charette
996ac768e3 [1.6.x] Fixed #23375 -- Added missing security issues to the archive.
Backport of c9c0be3 from master
2014-08-28 11:08:11 -04:00
Simon Charette
e3453b61c6 [1.6.x] Fixed #23329 -- Allowed inherited and m2m fields to be referenced in the admin.
Thanks to Trac alias Markush2010 and ross for the detailed reports.

Backport of 3cbb759 from master
2014-08-27 21:50:29 -04:00
Tim Graham
4db64e8491 [1.6.x] Fixed #21567 -- Documented how to deploy multiple sites using the sites framework.
Backport of 7b9537fb27 from master
2014-08-26 15:22:32 -04:00
Tim Graham
8e77ac634f [1.6.x] Fixed #23250 -- Documented that ModelMultipleChoiceField queryset may be None.
Backport of ced3e303ca from master
2014-08-26 14:50:42 -04:00
Tim Graham
adb0c535a9 [1.6.x] Fixed spelling mistake in file docs.
Backport of a3e88e64a4 from master
2014-08-26 09:44:55 -04:00
Mitch Davis
fa76275e8a [1.6.x] Clarified that makemessages -l takes a locale name, not a language code.
Backport of 5473c36cef from master
2014-08-26 08:11:59 -04:00
Tim Graham
9bc1091980 [1.6.x] Fixed #22154 -- Added "Built-in" to some class-based views titles.
Backport of 0c9f40f776 from master
2014-08-23 19:31:09 -04:00
Tim Graham
4684464b35 [1.6.x] Fixed #23324 -- Mentioned Site.id in contrib.sites docs.
Backport of a76aab3583 from master
2014-08-22 13:23:58 -04:00
Kristian Glass
d3c75da7fb [1.6.x] Fixed #23342 -- Clarified warning about naive time objects.
Thanks to apollo13 for suggested wording.

Backport of b7336ec179 from master
2014-08-22 11:40:07 -04:00
Tim Graham
f8344398fc [1.6.x] Fixed #23343 -- Typo in docs/ref/class-based-views/generic-date-based.txt.
Backport of 14aff0bd82 from master
2014-08-22 11:34:53 -04:00
Tim Graham
808c0dc705 [1.6.x] Bumped version number post-release. 2014-08-20 16:38:01 -04:00
Tim Graham
66638a09c5 [1.6.x] Added dates to release notes.
Backport of b902be798e from master
2014-08-20 16:32:51 -04:00
James Bennett
8b19a4e275 [1.6.x] Update version number for security release. 2014-08-20 15:14:55 -05:00
Simon Charette
f7c494f250 [1.6.x] Prevented data leakage in contrib.admin via query string manipulation.
This is a security fix. Disclosure following shortly.
2014-08-20 11:43:43 -04:00
Preston Holmes
0268b855f9 [1.6.x] Fixed #23066 -- Modified RemoteUserMiddleware to logout on REMOTE_USE change.
This is a security fix. Disclosure following shortly.
2014-08-20 11:43:43 -04:00
Tim Graham
dd0c3f4ee1 [1.6.x] Fixed #23157 -- Removed O(n) algorithm when uploading duplicate file names.
This is a security fix. Disclosure following shortly.
2014-08-20 11:43:43 -04:00
Florian Apolloner
da051da8df [1.6.x] Prevented reverse() from generating URLs pointing to other hosts.
This is a security fix. Disclosure following shortly.
2014-08-20 11:43:43 -04:00
Tim Graham
52b878d805 [1.6.x] Added release note stubs for 1.5.9 and 1.4.14. 2014-08-20 11:43:43 -04:00
Tim Graham
48368d421c [1.6.x] Added sphinx extension to ease generation of ticket links.
Backport of fca677fa43 from master
2014-08-19 17:47:21 -04:00
Tim Graham
477ab02312 [1.6.x] Fixed #17238 -- Added source code links to docs using sphinx.ext.viewcode.
Thanks santiagobasulto for the suggestion.

Backport of 9ed4a8c6b1 from master
2014-08-19 17:45:38 -04:00
Claude Paroz
9f9fdc4b0a [1.6.x] Fixed #22996 -- Prevented crash with unencoded query string
Thanks Jorge Carleitao for the report and Aymeric Augustin, Tim Graham
for the reviews.
Backport of fa02120d36 from master.
2014-08-19 22:55:35 +02:00
Tim Graham
c0e49ef767 [1.6.x] Fixed #21801 -- Documented SingleObjectMixin.get_context_data() requires the object attribute.
Backport of 03c1609c47 from master
2014-08-19 12:09:22 -04:00
Tim Graham
18f25efc9e [1.6.x] Fixed #23314 -- Tempered recommendation of storing profile data on custom user.
Thanks gavinwahl for the report.

Backport of 3569536491 from master
2014-08-19 07:27:03 -04:00
Tim Graham
3cd3b49eb5 [1.6.x] Fixed #17272 -- Documented that non-editable fields are skipped during model validation.
Thanks mitar for the report.

Backport of c587bd5a94 from master
2014-08-19 07:18:42 -04:00
Tim Graham
d1e4fb996b [1.6.x] Fixed #23282 -- Corrected inheritance and reverse relations example.
Thanks knowledgepoint-devs for the report and claudep for review.

Backport of 7006187064 from master
2014-08-19 06:30:01 -04:00
Tim Graham
190d81179f [1.6.x] Fixed #4991 -- Emphasized XSS ramifications of help_text not being escaped.
Backport of 5dbe2a9431 from master
2014-08-19 06:16:41 -04:00
Tim Graham
75d7bb8d43 [1.6.x] Fixed #5726 -- Documented that inspectdb doesn't detect defaults.
Backport of 15cafaa565 from master
2014-08-19 06:15:34 -04:00
Tim Graham
955fdc8cdb [1.6.x] Fixed #14638 -- Clarified model Field.to_python() docs.
Thanks Anubhav Joshi for the patch.

Backport of b6aa60f425 from master
2014-08-18 12:54:24 -04:00
Claude Paroz
f5e8376288 [1.6.x] Fixed multi geometries editing in OpenLayers widget
Backport of 457c16d0d from master.
2014-08-15 10:10:35 +02:00
Zhaorong Ma
73cc96478b [1.6.x] Fixed a grammar error in docs/ref/forms/api.txt.
Backport of bef5b9b7cd from master
2014-08-14 12:15:18 -04:00
Claude Paroz
99b5567796 [1.6.x] Fixed #23265 -- Used system-specific encoding in runserver
Thanks SpaceFox for the report.
Backport of 055d95fce066 from master.
2014-08-14 12:11:42 +02:00
Tim Graham
123f490ae3 [1.6.x] Corrected content_type parameter name in sitemap docs.
mimetype was deprecated in 1.5 per 11ec0253ab4cc926ab9e77619132cb398231ac33.

Backport of a7443c24a3 from master
2014-08-13 21:45:32 -04:00
Tim Graham
db1cfbc1a9 [1.6.x] Fixed indentation typo in docs/ref/contrib/sitemaps.txt.
Backport of 2003cb23d4 from master
2014-08-12 12:27:45 -04:00
Tim Graham
d07394a51e [1.6.x] Added a warning that remove_tags() output shouldn't be considered safe.
Backport of 7efce77de2 from master
2014-08-11 07:09:47 -04:00
Ola Sitarska
ffb9cbfdaa [1.6.x] Fixed #23267 -- Fixed typo in Translation documentation
Thanks to Tomin1 for the report.

Backport of 2e7be92b4df29ac851d570e57da5dcf756c5ac52 from master.
2014-08-11 12:09:32 +02:00
Tim Graham
72e98d5c16 [1.6.x] Noted that django-jython requires Django 1.7. 2014-08-08 12:45:18 -04:00
Mohammed Attia
3d8e106ae9 [1.6.x] Removed a doc reference to the deprecated mimetype kwarg.
Backport of 61ed959235 from master
2014-08-06 22:20:05 -04:00
Tim Graham
5fdfa2d9b4 [1.6.x] Fixed #21792 -- Documented Form.has_changed()
Thanks bjb at credil.org for the suggestion and
Ivan Mesic for the draft patch.

Backport of edcc75e5ac from master
2014-08-05 08:49:38 -04:00
Tim Graham
4121ce3dfa [1.6.x] Updated links for continous integration server.
Backport of 21d0ceefb5 from master
2014-08-05 07:29:00 -04:00
Tim Graham
e275016f09 [1.6.x] Fixed #23154 -- Removed reference to deprecated run_gunicorn command.
Thanks frewsxcv for the report.

Backport of 75f2c65cb6 from master
2014-08-02 15:04:05 -04:00
Erik Romijn
316178efe6 [1.6.x] Fixed #23149 -- Clarified note on HTTPOnly in cookie-based session docs
Backport of e26366da44bb343e7a95d01ff0dd18b8026c2802 from master.
2014-08-02 18:59:27 +02:00
Tim Graham
0dfc37669d [1.6.x] Updated MySQL links to version 5.6.
Backport of fb4f3e04b1 from master
2014-08-02 10:27:34 -04:00
Tim Graham
1cfb1052ee [1.6.x] Fixed typo in docs/topics/testing/tools.txt.
Backport of 7ce4ef58c9 from master
2014-08-01 09:43:52 -04:00
Tim Graham
faff723770 [1.6.x] Updated timezone docs to use timezone.now()
Thanks James Cleveland for the report and Aymeric for suggesting
the solution.

Backport of da59902250 from master
2014-07-31 12:57:53 -04:00
Tim Graham
e4b2bea743 [1.6.x] Fixed #19107 -- Restored bug fix for sending unicode email with Python 2.6.5 and below. 2014-07-30 09:29:08 -04:00
Tim Graham
8567c1a3c2 [1.6.x] Fixed #23132 -- Removed confusing clause in auth docs.
Backport of abb97cffdf from master
2014-07-30 08:16:07 -04:00
Tim Graham
f07e9f8796 [1.6.x] Added a missing skipUnlessDBFeature for the previous commit. 2014-07-29 09:37:49 -04:00
Shai Berger
838b7f8220 [1.6.x] Fixed #20292: Pass datetime objects (not formatted dates) as params to Oracle
This seems worthwhile in its own right, but also works around an Oracle
bug (in versions 10 -- 11.1) where the use of Unicode would reset the
date/time formats, causing ORA-01843 errors.

Thanks Trac users CarstenF for the report, jtiai for the initial patch,
and everyone who contributed to the discussion on the ticket.

Backport of 6983201 from master.
2014-07-29 07:00:26 -04:00
Baptiste Mispelon
8e25b696ba [1.6.x] Fixed #23123 -- Don't use a bare except in ModelAdmin documentation
Thanks to wkschwartz for the report and to Tim for the patch.

Backport of e5619330e2 from master
2014-07-29 06:22:42 -04:00
Moayad Mardini
6c70b1d7df [1.6.x] Fixed #22491 -- documented how select_for_update() should be tested.
Thanks Andreas Pelme for the report.

Backport of 668d432d0a from master
2014-07-28 10:58:34 -04:00
David Hoffman
a7fe87bd28 [1.6.x] Fixed #23106 -- Updated class-based view reference title.
Backport of f14898a453 from master
2014-07-26 20:47:13 -04:00
David Hoffman
e3a99357cb [1.6.x] Fixed #22553 -- Added refreshing queryset info to docs.
Backport of 6d5daa30cf from master
2014-07-26 10:27:49 -04:00
Niclas Olofsson
1c714c18d2 [1.6.x] Fixed #22305 -- Added note to docs about UTF8 database requirement.
Backport of 08b85de9b7 from master
2014-07-26 09:40:31 -04:00
David Hoffman
2630cafc86 [1.6.x] Fixed #23097 -- Switched to new octal format in docs
Backport of e1c85167a3 from master.
2014-07-26 11:24:04 +02:00
Moayad Mardini
ae5a4668be [1.6.x] Fixed #22827 -- clarified what each cache middleware does.
Thanks Keryn Knight for the report.

Backport of f9b7a0383c from master
2014-07-25 06:26:45 -04:00
Tom Dyson
deeaa78d5e [1.6.x] Improved docs for GEOSGeometry.simplify()
Backport of aa8bc7fa7d from master
2014-07-25 06:22:41 -04:00
Aymeric Augustin
83098dccdf [1.6.x] Fixed #23089 -- Fixed transaction handling in two management commands.
Previously, when createcachetable and flush operated on non-default
databases, they weren't atomic.

Also avoided transactional DDL and transactional truncates on databases
that don't support them (refs #22308).

Backport of 753a22a635, 0757e0f30d, and 6877a9d415 from master
2014-07-24 19:27:15 -04:00
africa itcase
290e389fe9 [1.6.x] Fixed typo in docs/ref/contrib/admin/index.txt.
Backport of 06ba4b9eee from master
2014-07-22 13:28:02 -04:00
Iain Dawson
205090bc71 [1.6.x] Replaced instances of 'his/her' with 'their'.
Backport of 8fbf13a6c8 from master
2014-07-21 19:55:28 +00:00
Tim Graham
ca44366b15 [1.6.x] Added 1.6.6 release notes for #22998. 2014-07-16 13:36:19 -04:00
Bartek Ciszkowski
24e97add31 [1.6.x] Fixed reference to pk in RedirectView.get_redirect_url doc.
Backport of d9f78d5344 from master
2014-07-16 13:23:59 -04:00
Tim Graham
21853c1b90 [1.6.x] Fixed #23023 -- Added warning against local-memory cache.
Thanks django at kerz.id.au.

Backport of 7d0519c725 from master
2014-07-16 12:35:04 -04:00
Tim Graham
04d827a710 [1.6.x] Added Chrome/IE support for a selenium test.
Backport of 5954aa6db0 from master plus additional changes...
2014-07-16 11:01:53 -04:00
Anssi Kääriäinen
9be56ec62c [1.6.x] PEP8 cleanup
Backport of f8df55050c from master
2014-07-16 12:53:52 +03:00
Gavin Wahl
227a0f27a6 [1.6.x] Fixed #22998 -- Updated the fast_delete logic for GFKs
Backport of 6e2b82fdf6 from master
2014-07-16 12:53:48 +03:00
Ramiro Morales
609153d2bf [1.6.x] Added release note for issue 13794 fix. 2014-07-14 22:45:41 -03:00
Tim Graham
685582940b [1.6.x] Fixed #13794 -- Fixed to_field usage in BaseInlineFormSet.
Thanks sebastien at clarisys.fr for the report and gautier
for the patch.

Backport of 5e2c4a4bd1 from master
2014-07-14 12:39:19 -03:00
Tim Graham
a823a74975 [1.6.x] Fixed typo in docs/ref/contrib/gis/geos.txt.
Backport of fef26e9a87 from master
2014-07-10 06:09:47 -04:00
Tim Graham
f3bdb83ba5 [1.6.x] Revert "Improve cookie based session backend docs." refs #20418
This reverts commit d9c01da1f8ba3d4e0947fd1d619c8f4a9b013360.

This is poor advice as it breaks the test client login (refs #22934).
We can add a note like this back after refs #22986 is resolved.

Backport of 3a85aae2ea from master
2014-07-09 14:12:52 -04:00
Tim Graham
d8f7e00708 [1.6.x] Fixed #22978 -- Removed a USA-centric example that didn't add much.
Backport of 9f18b6bcb0 from master
2014-07-08 08:57:47 -04:00
Tim Graham
837cad0f62 [1.6.x] Fixed #22942 -- Noted that __init__.py files are required for management command detection.
Thanks Diego Cerdán for the suggestion.

Backport of 54546cee88 from master
2014-07-07 18:09:22 -04:00
Tim Graham
85f9745807 [1.6.x] Fixed #22966 -- Clarified which release notes appear for each doc version.
Thanks haimunt at yahoo.com for the suggestion.

Backport of e6b3d6c22f from master
2014-07-07 15:31:47 -04:00
Daniel Hahler
b6bfdacdae [1.6.x] Fixed various minor doc typos / references.
Backport of 67f9f385aa from master
2014-07-05 20:27:03 -04:00
Tim Graham
890a2d632e [1.6.x] Fixed #22924 -- Added a note about MEDIA_URL in templates.
Thanks raphael.herouart at gmail.com

Backport of 814bcc3395 from master
2014-07-03 09:38:59 -04:00
Claude Paroz
9207442fe2 [1.6.x] raw() was still defined on Manager in Django 1.6 2014-07-02 18:29:16 +02:00
Tim Graham
f3cd0a009e [1.6.x] Clarified that LocMemCache is per-process; refs #7639.
Thanks projectgus for the suggestion.

Backport of c37000ab04 from master
2014-07-02 10:14:17 -04:00
Tim Graham
e125984394 [1.6.x] Fixed #13755 -- Added a tip for caching responses that vary on AJAX.
Thanks mila for the suggestion.

Backport of db9a1a0c47 from master
2014-07-01 17:34:24 -04:00
Claude Paroz
6883602021 [1.6.x] Included irc link in paragraph to allow for l10n
Translators may want to change the irc link pointing to a
language-specific channel.
Backport of 232f2028d5 from master.
2014-07-01 21:57:31 +02:00
Tim Graham
735ece0b89 [1.6.x] Fixed #19489 -- Documented host parameter of assertRedirects().
Thanks mrknacky at gmail.com for the report and gajimenezmaggiora
for the draft patch.

Backport of e3c7af18a3 from master
2014-06-30 17:53:54 -04:00
Claude Paroz
6b00b478d2 [1.6.x] Removed reference to old middleware
Backport of 0b5bafe993 from master
2014-06-30 15:24:13 -04:00
Tim Graham
6d0acc344f [1.6.x] Fixed docs/ref/contrib/auth.txt so that sphinx links work properly.
Backport of 5359188b08 from master
2014-06-30 14:32:59 -04:00
Claude Paroz
90b4d20566 [1.6.x] Fixed a French translation in contrib.auth
Refs #22929.
2014-06-30 20:09:57 +02:00
Tim Graham
044d419c21 [1.6.x] Fixed #22912 -- Warned about a common mistake in tutorial 5.
Backport of 1e8411259f from master
2014-06-27 09:52:35 -04:00
Éric Araujo
25d04ebe54 [1.6.x] Fixed copy/paste typos in StreamingHttpResponse doc.
Backport of e9c730f6be from master
2014-06-26 07:32:02 -04:00
Duncan Parkes
20a1c07ea1 [1.6.x] Improved documentation for QueryDict.
Backport of 7f4e2ef1e9 from master
2014-06-24 21:42:36 -04:00
Peter Kowalczyk
e4670d988a [1.6.x] Fixed typo in middleware docs.
Function definition should have an ending colon.

Backport of 48241ec from master
2014-06-24 16:13:29 -04:00
Claude Paroz
c38e47bec0 [1.6.x] Created import-time test temp dirs in known location
Refs #17215. In the same spirit as 5de31cb8cb.
Backport of 809362518d from master.
2014-06-23 14:59:39 +02:00
Vlastimil Zíma
ef3ae3d1c9 [1.6.x] Fixed #22514 -- Prevented indexes on virtual fields [postgres].
Backport of 78c32f1caa from master
2014-06-20 19:01:49 -04:00
Tim Graham
d4a3fd44f0 [1.6.x] Fixed #22859 -- Improved crossDomain technique in CSRF example.
Thanks flisky for the report.

Backport of 0be4d64487 from master
2014-06-18 14:37:24 -04:00
Jorge C. Leitão
6b52e1793c [1.6.x] Fixed #14481 -- Documented implicit "through" class created by ManyToManyField.
Thanks to jonathanmorgan for the report and initial patch.

Backport of de90129070 from master
2014-06-18 12:39:36 -04:00
vagrant
b0e5a527db [1.6.x] Fixed #22842
Backport of 7a1f8414c3b71b6af03e5be9f5f8db115551c410 from master.
2014-06-15 21:11:36 +02:00
Moayad Mardini
26983c4c64 [1.6.x] Fixed #22349 -- Added a note clarifying RawQuerySet has no __len__.
Thanks cdestigter for the report.

Backport of 2d425116e2 from master
2014-06-12 16:42:44 -04:00
Tim Graham
15fe4ab671 [1.6.x] Fixed #22818 -- Clarified you need to cd into the Django clone.
Thanks Josh Parris.

Backport of bcc3d2b978 from master
2014-06-12 10:53:32 -04:00
Claude Paroz
631d0bb2da [1.6.x] Fixed #22813 -- Updated Pillow URL in documentation
Backport of dfa3505ff1 from master.
2014-06-12 08:58:29 +02:00
Maxime Turcotte
fcd2e06ae5 [1.6.x] Fixed #22801 -- Added 'www.' to diveintopython.net links
Backport of f97c53c098 from master
2014-06-10 15:41:25 -04:00
Tim Graham
ab2a2f6695 [1.6.x] Removed duplicate "Deprecated in Django A.B" text in docs.
sphinx 1.2+ adds this text itself.

Backport of 7f4347b176 from master
2014-06-07 07:27:13 -04:00
Éric Araujo
f5b6b25c5f [1.6.x] Fix missing highlighting in some code examples
Backport of 84cafc2b35 from master
2014-06-05 15:14:30 -04:00
Guillaume Pannatier
08bd249fa2 [1.6.x] Fixed #22710 -- Amended aggregation note for empty QuerySets
Thanks smeaton for report and Joël Rochat for spell check

Backport of 7f27cca5c5 from master
2014-06-04 12:45:27 -04:00
Egor Semiguzov
734e9ad232 [1.6.x] Removed erroneous trailing comma in OLMapWidget.js.
Backport of c5226eb72a from master
2014-06-03 07:44:45 -04:00
Bryce Nesbitt
9334150ca4 [1.6.x] Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.
Backport of e020894470 from master
2014-06-02 18:53:00 -04:00
Claude Paroz
3a736c1836 [1.6.x] Made an aggregate test pass with spatialite backend
backends.tests.SqliteAggregationTests was failing with spatialite.

Backport of 550b6195ed from master
2014-05-31 22:08:38 -04:00
Guillaume Pannatier
4c358df66a [1.6.x] Fixed #22710 -- Documented aggregation behavior for empty QuerySets.
Thanks matklad for the report.

Backport of 7c6e96ec1f from master
2014-05-30 08:05:48 -04:00
Tim Graham
3252e0654e [1.6.x] Improved deprecation plan links in release notes.
Backport of 7ff326928a08d4c51141768bd305a44ca5ecb2e7 from master
2014-05-29 18:59:22 -04:00
Alasdair Nicol
c9a4c1d80b [1.6.X] Added missing commas to list of strings 2014-05-28 09:15:56 +01:00
Moayad Mardini
082920d827 [1.6.x] Fixed #22601 -- Added a note about model inheritance.
Thanks semenov for the report.

Backport of 2ea1e70b85 from master
2014-05-27 20:11:56 -04:00
Claude Paroz
475b3791a3 [1.6.x] Used link label in models FAQ to ease translation
Backport of d9d924250 from master.
2014-05-22 09:48:36 +02:00
Moayad Mardini
6a2f8985c1 [1.6.x] Fixed #22655 -- Fixed GeoQuerySet doc about strictly_below
The paragraph was a copy of strictly_above.

Backport of 2f43229c2f from master
2014-05-19 09:50:50 -04:00
Moayad Mardini
26221445df [1.6.x] Fixed #22368 -- clarified connecting to Oracle DB using service name
Used the official terminology listed in
http://docs.oracle.com/cd/B19306_01/network.102/b14212/glossary.htm#i997309

Thanks michael.cherkasov for the report.

Backport of bfac6bef83 from master
2014-05-19 07:46:32 -04:00
Víðir Valberg Guðmundsson
f3b0829017 [1.6.x] Fixed #22647 -- Documented redirect_field_name keyword argument for user_passes_test.
Backport of 268670a3a4 from master
2014-05-17 09:46:29 -04:00
Erik Romijn
91e03e81bb [1.6.x] Fixed #22644 -- Clarified documentation for NamedUrlWizardView
Backport of 727d048f0991ccbd1564c6fb225ffbfd2f1a2102 from master.
2014-05-17 15:14:53 +02:00
Tim Graham
ee075c4484 [1.6.x] Added stub release notes for 1.6.6.
Backport of 79e9da3d1e from master
2014-05-16 18:19:49 -04:00
Claude Paroz
ba40d6509a [1.6.x] Fixed case in form widgets docs
Backport of 9494f29d from master
2014-05-16 17:43:10 -04:00
Moritz
20215f4cae [1.6.x] Fixed #22167 -- Improved documentation on context processors
Backport of e7ffba8f78849fbf60b98fb8d67ef4577b585e3b from master.
2014-05-16 18:29:25 +02:00
Niclas Åhdén
1a3371d1e4 [1.6.x] Fixed #22622 -- Added ugettext_lazy import in docs
Backport of 7271f5db78 from master
2014-05-16 11:21:05 -04:00
Erik Romijn
50a289d05f [1.6.x] Fixed #22579 -- Corrected validation for email to reject trailing slash
Backport of 424fe76349a2e34eafef13c2450a7a1f4d3115a6 from master.
2014-05-16 15:40:52 +02:00
mbacho
4b49cbfae4 [1.6.x] Fixed typo in multipartparser.py
Backport of 8a9d54aa69 from master
2014-05-16 05:35:43 -04:00
Tim Graham
d41a001011 [1.6.x] Minor edits to latest release notes.
Backport of 860d31ac7a from master
2014-05-15 07:17:02 -04:00
Jacob Kaplan-Moss
9dc7f69a4b Updated version numbers post-release. 2014-05-14 18:42:26 +02:00
Jacob Kaplan-Moss
b5bacdea00 Updated version numbers for release. 2014-05-14 18:37:33 +02:00
Jacob Kaplan-Moss
b053eb929b Added release notes for 1.4.13, 1.5.8, 1.6.5. 2014-05-14 18:36:44 +02:00
Erik Romijn
6011075245 [1.6.x] Added additional checks in is_safe_url to account for flexible parsing.
This is a security fix. Disclosure following shortly.
2014-05-14 10:15:06 +02:00
Aymeric Augustin
1abcf3a808 [1.6.x] Dropped fix_IE_for_vary/attach.
This is a security fix. Disclosure following shortly.
2014-05-14 10:15:06 +02:00
Tim Graham
e05a6222cd [1.6.x] Removed an unnecessary anchor in the docs.
Backport of a06808d370 from master
2014-05-13 20:55:05 -04:00
Haris Ibrahim K. V
bff0eb3b24 [1.6.x] Fixed typo in transactions.txt
Backport of f2a8e47cfd from master
2014-05-13 07:28:46 -04:00
Tim Graham
c530a63429 [1.6.x] Fixed #22619 -- Corrected description of os.path.
Thanks Collin Anderson for the report.

Backport of a1be7237ca from master
2014-05-12 18:58:14 -04:00
Tim Graham
b718e292ac [1.6.x] Added 1.6.5 release note for refs #22508.
Backport of 13087020a9 from master
2014-05-12 12:44:48 -04:00
Tim Graham
42f8029b36 [1.6.x] Fixed #22613 -- Added formfield_for_choice_field() to the list of methods that InlineModelAdmin supports.
Backport of 986bd41f8a from master
2014-05-12 07:01:23 -04:00
Markus Amalthea Magnuson
129c446e86 [1.6.x] Insert space.
Backport of 8eb51a8cf6 from master
2014-05-11 16:18:21 -04:00
Ramiro Morales
8ebf38b7a4 [1.6.x] Fix typo in release notes. 2014-05-10 23:22:51 -03:00
Aymeric Augustin
b6d3212190 [1.6.x] Fixed #22508 -- Avoided overwriting select_related.
Previously, known related objects overwrote related objects loaded
though select_related. This could cancel the effect of select_related
when it was used over more than one level.

Thanks boxm for the bug report and timo for bisecting the regression.

Conflicts:
	tests/select_related_regress/tests.py

Backport of f574220f from master
2014-05-10 17:05:09 +02:00
Claude Paroz
dd9cedf16a [1.6.x] Updated the messages context processor docs 2014-05-06 20:40:59 +02:00
Tim Graham
f939e25b59 [1.6.x] Fixed #22585 -- Fixed typo in topics/auth/customizing.txt.
Thanks matt at mattwoodward.com for the report.
2014-05-06 12:13:55 -04:00
Tim Graham
5783088eec [1.6.x] Fixed #1349 -- Clarified docs on serving files from STATIC/MEDIA_URL.
Backport of fb7c347f7b from master
2014-05-05 07:39:08 -04:00
Tim Graham
cddbaca697 [1.6.x] Fixed #22575 -- Fixed typo in docs/topics/class-based-views/generic-editing.txt.
Thanks adminq80 at gmail.com.

Backport of 87776859af from master
2014-05-05 06:42:32 -04:00
Anssi Kääriäinen
0e37049636 [1.6.x] Fixed #22429 -- Incorrect SQL when using ~Q and F
Backpatch of 5e1f4656b98816c96a1cc051224c1b699db480e0 from master.

Conflicts:
	django/db/models/sql/query.py
	tests/queries/models.py
	tests/queries/tests.py
2014-05-05 13:27:54 +03:00
Claude Paroz
034866204b [1.6.x] Fixed #22565 -- Prevented pgettext_lazy crash with bytestring input
Thanks ygbo for the report.
Backport of 142c27218 from master.
2014-05-02 19:38:46 +02:00
Brenda J. Butler
b97b24882c [1.6.x] Fixed #22558 -- Added missing word in contributing docs
Backport of c8d257e81 from master.
2014-05-02 08:29:59 +02:00
Claude Paroz
120a981207 [1.6.x] Fixed #22551 -- Made oracle backend method Python 3 compatible
Thanks fatal10110 at gmail.com for the report. The fix is 1.6-only
because that code has been refactored in 1.7 (6983201cfb).
2014-05-01 18:15:00 +02:00
Tim Graham
c1692fa25a [1.6.x] Fixed #22547 -- Added some links to tutorial 2.
Thanks bjb at sourcer.ca for the suggestion.

Backport of b0d032f9fc from master
2014-04-30 18:26:04 -04:00
Moayad Mardini
2a0f942cbd [1.6.x] Fixed #22546 -- Removed idioms in tutorial 2.
Thanks bjb at sourcerer.ca for the suggestion.

Backport of 927245ccd8 from master
2014-04-30 18:02:06 -04:00
Aymeric Augustin
f6e9127483 [1.6.x] Fixed #22523 -- Clarified pytz requirement.
Thanks z for the report and timo for the proposal.

Backport of 0fb7570 from master
2014-04-29 08:34:21 +02:00
Tim Graham
2997a20072 [1.6.x] Added stub release notes for 1.6.5.
Backport of 650065f0ef from master
2014-04-28 20:38:34 -04:00
Tim Graham
6574e6c183 [1.6.x] Added dates to release notes of today's release.
Backport of 68d264059a from master
2014-04-28 19:07:07 -04:00
Tim Graham
6265885c1e [1.6.x] Post release version bump. 2014-04-28 18:59:49 -04:00
James Bennett
4a6b911fcf [1.6.x] Bump version for 1.6.4 bugfix release. 2014-04-28 15:39:08 -05:00
Claude Paroz
b4b63b3832 [1.6.x] Fixed #22507 -- Clarified nature of the sender argument of signals
Backport of d1f93e9c1e from master.
2014-04-25 23:16:59 +02:00
Tim Graham
e9c78435ab [1.6.x] Fixed #22504 -- Corrected domain terminology in security guide.
Thanks chris at chrullrich.net.

Backport of f65eb15ac6 from master
2014-04-25 10:29:24 -04:00
Moayad Mardini
2b0e9aa57d [1.6.x] Fixed #22493 - Added warnings to raw() and extra() docs about SQL injection
Thanks Erik Romijn for the suggestion.

Backport of 3776926cfe503f16c7195621da20c5b89bda70a2 from master
2014-04-25 09:56:39 -04:00
Malcolm Box
42659ceb3f [1.6.x] Fixed #22516 -- Added versionchanged annotation for STATIC_ROOT default value.
Backport of 658710be00 from stable/1.7.x
2014-04-25 09:36:56 -04:00
Tim Graham
d16948bd19 [1.6.x] Fixed #22515 -- Fixed the object_id of the LogEntry that's created after a user password change in the admin.
Thanks ross at servercode.co.uk for the report.

Backport of 9e7f86b890 from master
2014-04-25 08:36:28 -04:00
Claude Paroz
a742cf1711 [1.6.x] Renamed Transifex project from django-core to django
See also http://blog.transifex.com/post/83622601443/new-teams-management-transifex
Backport of 7c24027ba from master.
2014-04-24 11:52:36 +02:00
Tim Graham
274bedb928 Removed bad import in last commit. 2014-04-23 09:14:52 -04:00
Tim Graham
6915220ff9 [1.6.x] Fixed #22486 -- Restored the ability to reverse views created using functools.partial.
Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054.

Thanks rcoup for the report.

Backport of 3c06b2f2a3 from master
2014-04-23 08:56:13 -04:00
Marti Raudsepp
c5306d4af1 [1.6.x] Various documentation typo/spelling fixes
Errors detected by Topy (https://github.com/intgr/topy), all changes
verified by hand.

Backport of 11d453bcadad3c9a5ae35882792d0f1e8e8e7818 from master
2014-04-22 20:13:43 -04:00
Ray Ashman
49f5a29493 [1.6.x] Updated grammar in description of django.contrib.auth.
Backport of 9853779805 from master
2014-04-22 18:29:07 -04:00
Tim Graham
362ce5e936 [1.6.x] Added 1.6.4 release note stub.
Backport of 9fb95dfc9f from master
2014-04-22 11:49:29 -04:00
Tim Graham
a937687633 [1.6.x] Post release version bump. 2014-04-22 11:49:21 -04:00
Florian Apolloner
6ec346ba7b [1.6.x] Fixed #22426 -- Added support old-style d.c.messages format.
Forward ported code from 1.5 that adds backwards compatibility with legacy message length.
See commit 9e7183073f64e541587e8dcfd8bb3ddeb47f8162 for details.

Thanks to Ofir Ovadia for the initial patch.

Backport of f286721f7fdc2202f77a5f4d650d9d0779b86811 from master
2014-04-22 10:48:11 +02:00
James Bennett
7bb9bebe47 [1.6.x] Add missing disclosure information to security archive. 2014-04-21 18:29:05 -05:00
James Bennett
3f1abbfc40 [1.6.x] Update for 1.6.3 security release. 2014-04-21 18:10:57 -05:00
Erik Romijn
d63bfb14dd [1.6.x] Added information on resolved security issues to release notes.
Backport of c07f3e60c2d455e36ba4ac339d4283d32bbc3814 from master
2014-04-21 18:30:27 -04:00
Erik Romijn
5f0829a27e [1.6.x] Fixed queries that may return unexpected results on MySQL due to typecasting.
This is a security fix. Disclosure will follow shortly.

Backport of 75c0d4ea3ae48970f788c482ee0bd6b29a7f1307 from master
2014-04-21 18:30:27 -04:00
Aymeric Augustin
d63e20942f [1.6.x] Prevented leaking the CSRF token through caching.
This is a security fix. Disclosure will follow shortly.

Backport of c083e3815aec23b99833da710eea574e6f2e8566 from master
2014-04-21 18:30:27 -04:00
Tim Graham
4352a50871 [1.6.x] Fixed a remote code execution vulnerabilty in URL reversing.
Thanks Benjamin Bach for the report and initial patch.

This is a security fix; disclosure to follow shortly.

Backport of 8b93b31487d6d3b0fcbbd0498991ea0db9088054 from master
2014-04-21 18:30:27 -04:00
Matt Lauber
25adac9b42 [1.6.x] Corrected the section identifier for MySQL unicode reference.
Backport of b2514c02e1 from master
2014-04-21 13:20:51 -04:00
Tim Graham
1b43131b5d [1.6.x] Moved RemoteUserBackend documentation to reference guide.
Backport of 26d118c3fe from master
2014-04-18 16:11:10 -04:00
Moayad Mardini
b6863879e1 [1.6.x] Fixed #22458 -- Added a note about MySQL utf8_unicode_ci collation
Thanks tobami at gmail.com for the report.

Backport of 11ac50b18e from master
2014-04-18 15:11:14 -04:00
Tim Graham
839deb7a77 [1.6.x] Fixed #22473 -- Emphasized that Model.clean() is not called from Model.save().
Backport of b43bbd6d39 from master
2014-04-18 15:03:30 -04:00
Tim Graham
9e28bfb324 [1.6.x] Added some missing items to the 1.6.3 release notes.
Backport of c2b269df6e from master
2014-04-18 10:32:53 -04:00
Erik Romijn
8e5ce99d83 [1.6.x] Fixed #22471 -- Corrected misprint in i18n docs
Backport of 54d5c37de6572eae57a66339bb38719e681cee82 from master.
2014-04-18 15:14:31 +02:00
Tim Graham
fa60ac76c0 [1.6.x] Fixed #22454 - Changed compatibility warning hint for test runner.
Backport of 214d1e1b0f from master
2014-04-17 20:47:54 -04:00
Ben Davis
e093060823 [1.6.x] Fixed #22220 -- Added more examples to reverse() documention.
Thanks EvilDMP for the suggestions.

Backport of 030dd4f72c from master
2014-04-16 20:31:09 -04:00
Jordi Yeh
82803611eb [1.6.x] Fixed #22457 -- Fixed contributing guide w/o github set-up
The published commnand was not working when the user did not have
the git client set-up with the public-key. Changed the contributing
guide to clone it from https instead.

Backport of 28102991172ab931d030412275f926c1b05c688d from master.
2014-04-16 09:42:02 -04:00
Tim Graham
20dbbc5fa2 [1.6.x] Fixed #22453 -- Corrected DoesNotExist message in docs.
Thanks Eugenio Cano-Manuel.

Backport of eefad142dee466c1ead6038fbeec75479b1afead from master
2014-04-16 08:38:04 -04:00
Tim Graham
9510e96da6 [1.6.x] Added a note regarding django.contrib.auth.authenticate.
Thanks Josh Brown for the suggestion.

Backport of ae5b662796 from master
2014-04-16 07:49:38 -04:00
Tim Graham
a476b15aa5 [1.6.x] Added RemoteUserMiddleware to middleware reference page.
Backport of 465980d070a33555cdabb4787db50a4e23228de2 from master.
2014-04-16 07:30:50 -04:00
Tim Graham
724ccd2ec1 [1.6.x] Fixed #22392 -- Corrected deployment instructions for Apache 2.4.
Thanks zjcheah at yahoo.com for the report.

Backport of 0f37d2e4c0 from master
2014-04-15 17:45:52 -04:00
valtron
1252b77824 [1.6.x] Fixed #21760 -- prefetch_related used an inefficient query for reverse FK.
Regression introduced by commit 9777442. Refs #21410.

Conflicts:
	tests/prefetch_related/tests.py

Backport of d3b71b976d from master
2014-04-13 01:06:03 +07:00
Aymeric Augustin
a357079892 Improved a comment. Thanks intgr for the report. 2014-04-11 23:03:54 +02:00
Tim Graham
d501c79f7b [1.6.x] Fixed #22419 -- Typo in docs/topics/db/multi-db.txt.
Thanks Josh Kupershmidt.

Backport of c487b1e230 from master
2014-04-10 19:34:25 -04:00
Aymeric Augustin
80f6cbbadb [1.6.x] Increased robustness of 58161e4e. Refs #22291.
Backport of ee837b9a from master
2014-04-10 23:22:13 +02:00
Aymeric Augustin
1d3d2b9a24 [1.6.x] Fixed #21202 -- Maintained atomicity when the server disconnects.
Thanks intgr for the report.

This commit doesn't include a test because I don't know how to emulate a
database disconnection in a cross-database compatible way.

Also simplified a 'backends' test that was constrained by this problem.

Backport of 81761508 from master
2014-04-10 23:22:13 +02:00
Aymeric Augustin
4ea02bdb0d [1.6.x] Fixed #21239 -- Maintained atomicity when closing the connection.
Refs #15802 -- Reverted #7c657b24 as BaseDatabaseWrapper.close() now
has a proper "finally" clause that may need to preserve self.connection.

Backport of 25860096 from master.
2014-04-10 23:22:13 +02:00
Aymeric Augustin
746cded010 [1.6.x] Fixed #22321 -- Wrapped exceptions in _set_autocommit.
Refs #21202.

Backport of 3becac84 from master
2014-04-10 23:21:55 +02:00
Aymeric Augustin
9afedbef42 [1.6.x] Fixed #22291 -- Avoided shadowing deadlock exceptions on MySQL.
Thanks err for the report.

Backport of 58161e4e from master.
2014-04-10 23:05:09 +02:00
Tim Graham
de95867284 [1.6.x] Fixed #21353 -- Noted that description is ignored for TabularInlines.
Thanks nofinator for the report.

Backport of d5031ecf88 from master
2014-04-10 13:33:34 -04:00
John Paulett
129cb7e222 [1.6.x] Fixed #22364 -- Sanitized getpass input in changepassword.
Python 2 getpass on Windows does not accept unicode, even
when containing on ASCII characters. Related #190807.

Backport of b5a9166f7e from master
2014-04-10 13:16:08 -04:00
Carl Meyer
728fd27c00 [1.6.x] Fixed #22412 -- More nuanced advice re template filters and exceptions.
Thanks Tim for review.

Backport of 7e3834adc9 from master
2014-04-10 06:19:15 -04:00
Aymeric Augustin
e68c084ed1 Fixed a broken test introduced in 6fa7d7c5. Refs #21553.
Thanks Shai.
2014-04-10 07:51:04 +02:00
Shai Berger
d5cef2a19c [1.6.x] Documentation fixes for the select_for_update change.
Refs #22343; thanks Tim Graham for the fixes.
2014-04-10 03:44:45 +03:00
Shai Berger
690a5984a3 [1.6.x] Fixed #22343 -- Disallowed select_for_update in autocommit mode
The ticket was originally about two failing tests, which are
fixed by putting their queries in transactions.

Thanks Tim Graham for the report, Aymeric Augustin for the fix,
and Simon Charette, Tim Graham & Loïc Bistuer for review.

Backport of b990df1d63 from master
2014-04-10 02:15:14 +03:00
Aymeric Augustin
6fa7d7c594 [1.6.x] Fixed #21553 -- Ensured unusable database connections get closed.
Backport of 5f2f47f from master
2014-04-09 22:54:39 +02:00
ejstronge
32529e6432 [1.6.x] Fixed small typo in django-admin.txt
The word 'by' seemed to be missing from the first line of the compilemessages command.

Backport of 5ca522b9ed from master
2014-04-09 07:13:45 -04:00
Anubhav Joshi
23526d2f48 [1.6.x] Fixed #16205 -- Added an installation for Windows.
Backport of d35d2f61c5 from master
2014-04-08 11:29:02 -04:00
Vishal Lal
1cce00a762 [1.6.x] Fixed #22372 -- Improved description of WizardView.get_context_data().
Thanks simon29 for the report.

Backport of a8e2ec0e82 from master
2014-04-03 08:28:02 -04:00
Ramiro Morales
bd5965ce68 [1.6.x] Document removal of GeoDjangoTestSuiteRunner in 1.6 release notes.
e6ced2bb08 from master.
2014-04-02 17:18:56 -03:00
Patrick Michaud
73474df954 Fixed #22256 -- Replaced bad fallback for missing PATH
Thanks Baptiste Mispelon for the review.
Backport of acee46fc9 from master.
2014-04-01 20:45:12 +02:00
Loic Bistuer
07e2a56814 [1.6.x] Fixed #22360 -- Fixed two non-deterministic tests in Python 3.4.
The order of admin's changelist filters in the querystring relied on
dict ordering.

Backport of 4d996b8e69 from master
2014-03-31 08:24:12 -04:00
Tim Graham
f0d03d41be [1.6.x] Replaced urllib/urlparse imports with from django.utils.six.moves.
Backport of 981b864fbd from master
2014-03-31 07:55:33 -04:00
Loic Bistuer
a5297c1ef4 [1.6.x] Fixed #21795 -- Made add_preserved_filters account for url prefixes.
Thanks to trac username honyczek for the report. Refs #6903.

Backport of 4339e9a92d from master
2014-03-31 07:29:08 -04:00
Tim Graham
916f0de74b [1.6.x] Added 1.6.3 release note for refs #22250.
Backport of d57ba04d89 from master
2014-03-31 07:12:16 -04:00
Ramiro Morales
c0882fefca [1.6.x] Corrected an import in a model form docs example.
422f5d9a2c from master.
2014-03-30 20:37:02 -03:00
Tim Graham
059bc7eb60 [1.6.x] Fixed #22338 -- Fixed a test dependent on dictionary key iteration order.
Backport of 69a4f383f6 from master
2014-03-30 14:27:11 -04:00
Tim Graham
30ba506e97 [1.6.x] Fixed #21858 -- Clarified 1.6 release note regarding M2M help text changes.
Thanks lee at semel.net for the report.

Backport of f30e6590f4 from master
2014-03-29 10:23:28 -04:00
Anssi Kääriäinen
31892af3f0 [1.6.x] Fixed #22250 -- regression in gis compiler for non-concrete fields
Thanks to gwahl@fusionbox.com for the report.

Backport of 21f208e66e from master
2014-03-29 08:29:38 +02:00
Tim Graham
f659c8e13a [1.6.x] Added Python 3.4 support notes.
Backport of 306deab2c7 from master
2014-03-27 08:14:39 -04:00
Tim Martin
fe83cfe9ed [1.6.x] Fixed #21941 -- Documented the kwargs param of django.conf.urls.url().
Thanks cjerdonek for the report.

Backport of a779757706 from master
2014-03-27 07:02:06 -04:00
Tim Graham
c0a9c2f72a [1.6.x] Fixed #22322 -- Fixed incorrect explanation of what managed=False does.
refs #14305.

Thanks Adrian Klaver for the report.

Backport of 9b7ba8af1b4ddb539cd69cbec9645cd873db7624 from master
2014-03-25 14:10:29 -04:00
Adam Kaliński
38096da5c0 [1.6.x] Fixed #22048 - Enhanced docs to cover nonexistent one-to-one relationships.
Thanks EvilDMP for the suggestion.

Backport of ec08d62a20 from master
2014-03-24 09:45:56 -04:00
Tim Graham
90916e1708 [1.6.x] Fixed #22247 -- Replaced "upstream" with "downstream" in cache docs.
Thanks valgarv at gmx.net for the report.

Backport of 60d2dde286 from master
2014-03-24 09:19:50 -04:00
Tim Graham
7af32bca38 [1.6.x] Fixed #21665 -- Documented that changes in assertRedirects may be required given new URL escaping behavior.
Thank pdc for the report.

Backport of 62e81bc00b from master
2014-03-24 09:09:23 -04:00
Tim Graham
779ef57c37 [1.6.x] Updated six to 1.6.1.
Backport of 2ec82c7387 from master
2014-03-24 07:34:22 -04:00
Claude Paroz
d908b67e81 [1.6.x] Fixed #22317 -- Fixed documented handler400 default value
Backport of 3f7615cddc from master.
2014-03-23 21:20:43 +01:00
Claude Paroz
c9b2feffee [1.6.x] Tweaked strip_tags tests to pass on Python 3.3
Backport of 6a0291bda from master.
2014-03-22 15:05:28 +01:00
Claude Paroz
f05f5c231a [1.6.x] Removed a strip_tags test for older Python versions
Django's custom HTMLParser for older Python versions cannot
parse convoluted syntax.
2014-03-22 14:21:35 +01:00
Claude Paroz
5f7b3e56ce [1.6.x] Added release note about strip_tags improvement
Backport of 1c8dbb0cc from master.
2014-03-22 12:37:06 +01:00
Claude Paroz
d1503afd66 [1.6.x] Improved strip_tags and clarified documentation
The fact that strip_tags cannot guarantee to really strip all
non-safe HTML content was not clear enough. Also see:
https://www.djangoproject.com/weblog/2014/mar/22/strip-tags-advisory/
Backport of 6ca6c36f8 from master.
2014-03-22 11:07:27 +01:00
Aymeric Augustin
c8c2d60614 [1.6.x] Small doc changes missed in 66076268.
Partial backport of 253e8ac2 from master.
2014-03-21 22:11:50 +01:00
Tim Graham
0726482c9d [1.6.x] Replaced an instance of PIL with Pillow in the docs.
Backport of 563d6a6bba from stable/1.7.x
2014-03-21 11:25:18 -04:00
Anubhav Joshi
a01daaf231 [1.6.x] Fixed #22253 -- Added django-i18n to the mailing lists docs.
Thanks bmispelon for the suggestion.

Backport of 0399523cf1ac1f6adcfe593e05824ff4f98da3d3 from master
2014-03-19 07:23:41 -04:00
Daniel Pyrathon
9f7bd83184 [1.6.x] Fixed #22242 -- Documented common cookie size limit.
Backport of 885e7adf56 from master
2014-03-16 10:47:08 -04:00
Claude Paroz
1a2939bc26 [1.6.x] Fixed #22245 -- Avoided widget overwrite in forms.IntegerField subclasses
Thanks Jeroen Pulles for the report and Simon Charette for the review.
Backport of 5a976b4bec7 from master.
2014-03-13 16:59:23 +01:00
Dejan Noveski
141bb90b4c [1.6.x] Fixed #22262 -- Added the correct line in the last example of Translator lines
Backport of 958b511a80c01ac010561c8fefe4548203700fa3 from master.
2014-03-13 14:14:40 +01:00
Tim Graham
f582b61f1c [1.6.x] Fixed typo in docs/ref/django-admin.txt
Thanks Wes Kendall for the report.

Backport of ce3d9f847d from master
2014-03-11 08:10:40 -04:00
Alex de Landgraaf
8e704b176f [1.6.x] Fixed #21986 -- Added some guidelines for database indexes.
Thanks django-issues at colons.co for the suggestion.

Backport of c8d61fa109 from master
2014-03-03 11:19:03 -05:00
Tim Graham
e7649789ed [1.6.x] Fixed #21908 -- Added example usage for ModelAdmin.get_inline_instances().
Thanks matt at schinckel.net for the suggestion.

Backport of 5a4f1298cf from master
2014-03-03 10:42:32 -05:00
Baptiste Mispelon
4aaea2921d [1.6.x] Fixed some typos in the documentation.
Thanks to Rodolfo Carvalho and Piotr Kasprzyk
for the patch.

Partial backport of ea4da8e63c314b4f7cbcb4dd06eef466c1e872ed from master.
2014-03-02 17:21:10 +01:00
Alexey Voronov
5cda1d2702 [1.6.x] Fixed #21643 -- repeated execution of qs with F() + timedelta
Thanks Tim Graham for review and Tai Lee for the additional test to prove
this was a regression in 1.6.

Backport of 7f2485b4d1 and 8137215973 from master
2014-02-28 20:49:13 -05:00
navneet suman
f2b513c9e8 [1.6.x] Fixed #22145 -- Clarified docs on Field.blank and Field.null options.
Thanks skipjack at peru.com for the suggestion.

Backport of 3390550f6f from master
2014-02-25 21:01:02 -05:00
Rik
dde67de0f6 [1.6.x] Fixed #12670 -- Added a note about permissions of files stored in FILE_UPLOAD_TEMP_DIR.
Thanks simon29 for the suggestion.

Backport of 355572ac56 from master
2014-02-25 11:21:29 -05:00
Henk Vos
985d0865a3 [1.6.x] Fixed #22071 -- Added a warning regarding override_settings and aliasing.
Thanks EvilDMP for the suggestion.

Backport of e65c0ccac0 from master
2014-02-25 10:48:51 -05:00
Claude Paroz
3a5da7a11c [1.6.x] Fixed #22116 -- Added precision about WSGIPythonPath separator
Thanks donjpacheco for the initial patch.
Backport of 91f4a75a6b from master.
2014-02-24 18:29:46 +01:00
Alasdair Nicol
39b099bdd2 [1.6.x] Fixed #22112 -- Added RedirectView.pattern_name to CBV flattened index
Also moved accessor method get_redirect_url next to its attribute url
for consistency with the other views.

Thanks nikunj.sg for the report

Backport of 462edd22e5577ff9ee6477f7572b571700d1a2aa from master.
2014-02-23 13:58:08 +01:00
Martin Matusiak
4f6ff7ee85 [1.6.x] Fixed #22007 -- Fixed cbv docs - make imports consistent
Thanks to trac user kinjal.dixit for the report.

Backport of d399731bf29bf842c756a77ff8a58706bac3d65f from master.
2014-02-23 13:56:04 +01:00
Marcin Sokół
98070b94a9 [1.6.x] Fixed #21902 -- Documented search order for list_display.
Backport of 09b725f51bbfa0f01b27ee2d718889926d409519 from master.
2014-02-23 13:54:56 +01:00
Jochem Oosterveen
882f2a5b81 [1.6.x] Fixed #22092 -- Documented ResolverMatch.view_name
Backport of 271929dd9d3aa5184cbb13d79b3651ac32e640ea from master.
2014-02-23 13:54:17 +01:00
Marcin Sokół
79cc1fa58d [1.6.x] Fixed #22113 -- changed object_name to model_name in CBV docs.
Thanks to trac user nikunj.sg for the report.

Backport of b8874084868080baff29ac3453d20a845fd1568c from master.
2014-02-23 13:52:45 +01:00
Baptiste Mispelon
a36513c2b4 [1.6.x] Fixed #21881 -- Clarify behavior of {% ssi %} template tag.
When using the `parsed` option, {% ssi %} has the same limitation
as {% include %}, namely that the rendering of the included
template is done separately.

Thanks to trac user nagyv for the report and to alextreme for
the patch.

Backport of 072fb923e1b2e39e85a4ed4569ee7cd94f26a0bb from master.
2014-02-23 13:52:14 +01:00
Alex de Landgraaf
23cbfc9a25 [1.6.x] Fixed #22063 -- Added reference to NoReverseMatch from the reverse() documentation
Backport of b645be80e99709c8b1f9b3d1c26e99e22fdca08b from master.
2014-02-23 13:51:42 +01:00
Baptiste Mispelon
12da6902e9 [1.6.x] Fixed #22107 -- Fixed django.core.files.File object iteration.
Due to a mixup between text and bytes, iteration over
a File instance was broken under Python 3.

Thanks to trac user pdewacht for the report and patch.

Backport of 3841feee86cae65165f120db7a5d80ffc76dd520 from master.
2014-02-20 23:59:51 +01:00
Tim Graham
e56ce87bd8 [1.6.x] Fixed #22093 -- Made Form.Meta.fields examples consistent.
Thanks david-schultz at gmx.net for the suggestion.

Backport of 821fc925f0 from master
2014-02-19 12:33:32 -05:00
Tim Graham
a088ce90f2 [1.6.x] Fixed #22062 -- Corrected static files config for Apache >= 2.4
Backport of ffa238c3f7 from master
2014-02-18 09:32:41 -05:00
Zbigniew Siciarz
14366ed33e [1.6.x] Fixed #22013 -- Documented difference between SERVER_EMAIL and DEFAULT_FROM_EMAIL.
Backport of 44814e78cc from master
2014-02-15 13:30:13 -05:00
Tim Graham
a6f05af016 [1.6.x] Added 1.6.3 release note for refs #21566.
Backport of 865392c478 from master
2014-02-14 21:06:08 -05:00
Roger Hu
9a446211bd [1.6.x] Fixed #21566 -- Fixed AttributeError when using bulk_create with ForeignObject.
Backport of bbc73e6a12 from master.
2014-02-14 20:57:32 -05:00
Tim Graham
32a880ae95 [1.6.x] Added a missing import in staticfiles tests. 2014-02-13 08:03:43 -05:00
Loic Bistuer
d6db48e5f6 [1.6.x] Reworked the detection of local storages for the collectstatic command.
Before 4befb30 the detection was broken because we used isinstance
against a LazyObject rather than against a Storage class. That commit
fixed it by looking directly at the object wrapped by LazyObject.
This could however be a problem to anyone who subclasses the
collectstatic management Command and directly supplies a Storage class.

Refs #21581.

Backport of 7e27885c6e7588471fd94a4def16b7081577bdfc from master.
2014-02-12 11:05:07 -05:00
Claude Paroz
76700c5437 [1.6.x] Fixed #21996 -- Used proper encoding for GeoIP content
Thanks Florent Messa for the report.
Backport of fb1e3435a4 from master.
2014-02-10 16:12:22 +01:00
Claude Paroz
e9ffe7e3c8 [1.6.x] Added 1.6.3 release notes stub 2014-02-10 16:10:18 +01:00
Baptiste Mispelon
dbb9819360 [1.6.x] Fixed inaccuracies in generic mixins documentation.
Backport of a5391db76a20c8bb35a7bc0192870fddf747c54c from master.
2014-02-09 11:00:25 +00:00
Jacob Kaplan-Moss
63d6983746 Bumped version number post-release. 2014-02-06 15:53:09 -06:00
Jacob Kaplan-Moss
687b3d96c4 Bump version number for 1.6.2. 2014-02-06 15:38:06 -06:00
Jacob Kaplan-Moss
c58a98cc34 Updated 1.6.2 release notes for release (and linkified tickets). 2014-02-06 15:34:41 -06:00
Tim Graham
5f03b06919 [1.6.x] Added missing items to 1.6.2 release notes.
Backport of b17c75564f from master
2014-02-05 19:30:30 -05:00
Baptiste Mispelon
a77ec25573 [1.6.x] Added previous commit to 1.6.2 release notes.
Backport of 2dd88f0687c2bc9c457816a011bf5e46f6bf84ad from master.
2014-02-05 21:46:24 +01:00
Baptiste Mispelon
8864d24789 [1.6.x] Revert "Fixed #20296 -- Allowed SafeData and EscapeData to be lazy"
This reverts commit 2ee447fb5f8974b432d3dd421af9a242215aea44.

That commit introduced a regression (#21882) and didn't really
do what it was supposed to: while it did delay the evaluation
of lazy objects passed to mark_safe(), they weren't actually
marked as such so they could end up being escaped twice.

Refs #21882.

Backport of a878bf9b093bf15d751b070d132fec52a7523a47 from master.
2014-02-05 21:32:17 +01:00
Anssi Kääriäinen
fd3fa851b5 [1.6.x] Fixed #21748 -- join promotion for negated AND conditions
Made sure Django treats case .filter(NOT (a AND b)) the same way as
.filter((NOT a OR NOT b)) for join promotion.

Heavily modified backpatch of 35cecb1ebd0ccda0be7a518d1b7273333d26fbae
from master.

Conflicts:

	django/db/models/sql/query.py
	tests/queries/tests.py
2014-02-04 19:06:37 +02:00
Anssi Kääriäinen
0f272629ca [1.6.x] Fixed #21413 -- resolve_columns fields misalignment
Backpatch of 9918c11114ac3ec9622631558ef26ebf3919cb69 from master.

Conflicts:

	django/db/models/sql/compiler.py
	tests/model_inheritance_regress/tests.py
2014-02-04 15:21:13 +02:00
Shai Berger
5f42c02195 [1.6.x] Made Oracle introspect FloatFields correctly
Broke InspectDBTestCase.test_field_types in two:
- a test_number_field_types, which now passes on Oracle too
- a test_field_types, for all non-numeric fields, which is still expected to fail

Also made some pep8 fixes in the tests file. Refs #19884

Thanks Tim Graham for review.

Backport of e9d12ba from master
2014-01-30 01:26:42 +02:00
Shai Berger
0573120cb4 [1.6.x] Made Oracle introspect boolean fields
Refs #19884

Backport of ad975c64fc from master
2014-01-30 01:04:19 +02:00
Ian Foote
05cef1939e [1.6.x] Fix typo CRSF -> CSRF
Backport of af64f829d7 from master
2014-01-29 12:08:42 -05:00
Tim Graham
6f8e655ca0 [1.6.x] Added release note stubs for 1.5.6 and 1.4.11.
Backport of dfa28981ce from master
2014-01-26 17:49:01 -05:00
Tim Graham
38635977b7 [1.6.x] Added missing items to 1.6.2 release notes.
Backport of 2cbe1e28fb from master
2014-01-26 15:40:44 -05:00
Tim Graham
319cfd2097 [1.6.x] Fixed #21823 -- Upgraded six to 1.5.2
Backport of 780ae7e9f8 from master.
2014-01-26 15:38:01 -05:00
Aymeric Augustin
db60a52085 [1.6.x] Fixed #21880 -- Added missing items to django.utils.timezone.__all__.
Thanks Wim for the report.

Backport of 2b154ae from master.
2014-01-26 15:36:55 +01:00
Aymeric Augustin
a0a6112afc [1.6.x] Fixed typo. Refs #21836.
Backport of 8e1fc03 from master
2014-01-26 09:30:27 +01:00
Chris Jerdonek
a21fc1c086 [1.6.x] Fixed #21836 -- Improved transaction docs about autocommit mode
Clarified that queries in autocommit mode are committed immediately
only if a transaction has not already been started. Added to the
main transaction docs that Django's TestCase class implicitly wraps
its tests in transactions.

Backport of 798fd59f from master.
2014-01-25 21:21:30 +01:00
Tim Graham
e2e4de6555 [1.6.x] Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.
Thanks tragiclifestories for the report.

Backport of e1d18b9d2e from master
2014-01-24 09:05:49 -05:00
James Turley
6ea5f9e0de [1.6.x] Fixed #21824 -- Added reference to LTS in docs/internals/security.txt
Backport of 4d8209431d from master
2014-01-24 08:14:41 -05:00
Anssi Kääriäinen
e47b90e48f [1.6.x] Fixed #21787 -- regression in MTI .exclude() queries
Backpatch of 78a2617703bc1dada409f126db5c3db214913ff4 from master.
2014-01-24 10:18:57 +02:00
Tim Graham
c91e772b3a [1.6.x] Fixed some punctuation; thanks Chris Jerdonek.
Backport of 81830ce34f from master
2014-01-23 09:05:09 -05:00
Baptiste Mispelon
6bf05c0267 [1.6.x] Always use parentheses when documenting a method with no arguments.
Backport of 05d36dc06e6d767bb28993c65a54b703f319a386 from master.
2014-01-22 23:00:06 +01:00
Baptiste Mispelon
6bca149af5 [1.6.x] Don't show self in the list of arguments of a method.
This is consistent with Python's official documentation
and it's a sphinx recommendation too[1].

[1] http://sphinx-doc.org/markup/desc.html#dir-method

Refs #21855.

Backport of 79e1d6ebd70898d514a44b85648e3d24104c4243 from master.
2014-01-22 22:59:55 +01:00
Tim Graham
8eca53f0be [1.6.x] Fixed #20834 -- Described how caching of user permissions works.
Thanks Giggaflop and Jennifer Casavantes.

Backport of 5f9790072d from master
2014-01-22 13:09:44 -05:00
Tim Graham
4cf556db48 [1.6.x] Added a link to the 1.6 release notes which also fixed a rendering issue.
Backport of 2171341162 from master
2014-01-22 11:04:31 -05:00
Tim Graham
a4c32d70c2 [1.6.x] Fixed #21529 -- Noted that {% url %} encodes its output (refs #13260).
Backport of dfc092622e from master
2014-01-22 10:45:10 -05:00
Tim Graham
f7c2852f30 [1.6.x] Fixed #21726 -- Clarified that password should not be included in REQUIRED_FIELDS.
Thanks russellm for the report.

Backport of 6f06c749b7 from master
2014-01-22 10:19:02 -05:00
Tim Graham
a292ad1105 [1.6.x] Fixed #21834 -- Clarifed usage of template_name in tutorial part 4.
refs #21195 on master.
2014-01-20 20:06:08 -05:00
Jacob Kaplan-Moss
fcc290eda9 [1.6.x] Added a note about LTS releases.
Backport of a44cbca2a5f1388c6511dad48443877fa660845a from master.
2014-01-19 18:43:20 +01:00
Tim Graham
85149a8b7f [1.6.x] Fixed #18942 -- Clarified usage of {% get_static_prefix %}.
Thanks Aymeric for the suggestion.

Backport of bc7668eb51 from master
2014-01-17 16:06:54 -05:00
Tim Graham
4f058655d0 [1.6.x] Fixed #13116 -- Described scope of variables created by {% url ... as var %} syntax.
Thanks leif_p for the suggestion.

Backport of 4a5aac47a6 from master
2014-01-17 14:52:02 -05:00
Tim Graham
b8ec3b6ddd [1.6.x] Fixed #20052 -- Discouraged use of Jython given the current state of django-jython.
Thanks Josh Juneau (maintainer of django-jython) for the review.

Backport of a67e327db5 from master
2014-01-17 09:28:21 -05:00
Tim Graham
b1cc1633e0 [1.6.x] Fixed #18285 -- Documented that bulk_create doesn't work with M2M relationships.
Backport of 9173d2cb74 from master
2014-01-16 20:49:06 -05:00
Tim Graham
363b8c690a [1.6.x] Fixed #21768 -- Corrected TemplateView context section.
Thanks nedbatchelder for the report and claudep for the patch.

Backport of c05b2f58e7 from master
2014-01-16 07:59:15 -05:00
Tim Graham
b63dad3f45 [1.6.x] Fixed #21727 -- Added some links to help clarify topics/auth/default.txt
Thanks daGrevis for the suggestion.

Backport of d35f2bfd5b from master
2014-01-16 07:17:42 -05:00
Tim Graham
f8d93f2c71 [1.6.x] Fixed #21747 -- Added {% elif %} to template topics guide.
Thanks gcc for the suggestion.

Backport of 9e5033b302 from master
2014-01-16 07:09:15 -05:00
Kevin Wood
deefdc8e60 [1.6.x] Fixed typo in storage docs
Backport of 82f466b571 from master
2014-01-15 18:44:47 -05:00
Aymeric Augustin
18d75e0792 [1.6.x] Fixed a test that was failing with PostGIS.
Fixed #21452 again.
2014-01-12 21:39:36 +01:00
Aymeric Augustin
cb4a000adb [1.6.x] Fixed #21452 -- Non-autocommit connections to PostgreSQL.
When settings.DATABASES['default']['AUTOCOMMIT'] = False, the connection
wasn't in autocommit mode but Django pretended it was.

Thanks Anssi for analysing this issue.

Refs #17062.

Backport of 1afe7488 from master
2014-01-12 18:47:03 +01:00
Aymeric Augustin
b79bf9c7a9 [1.6.x] Fixed a test isolation issue. Refs #17062.
This test could change settings.DATABASES['default']['TIME_ZONE'] and
didn't restore the previous value.

Backport of 1c24096f from master.
2014-01-12 18:45:45 +01:00
Loic Bistuer
6728f159f0 [1.6.x] Fixed #21750 -- Fixed regression introduced by 4befb30.
Validating STATIC_ROOT in StaticFilesStorage.__init__ turned out to be
problematic - especially with tests - because the storage refuses to work even
if there are no actual interactions with the file system, which is backward
incompatible.

Originally the validation happened in the StaticFilesStorage.path method, but
that didn't work as expected because the call to FileSystemStorage.__init__
replaced the empty value by a valid path. The new approach is to move back the
check to the StaticFilesStorage.path method, but ensure that the location
attribute remains None after the call to super.

Refs #21581.

Backport of 1e9e7351f8 from master
2014-01-11 08:21:25 -05:00
Marc Sibson
bd3af2ee64 [1.6.x] Fixed docstring typo in django/forms/forms.py.
Backport of 81bb8d1220 from master
2014-01-10 08:33:58 -05:00
Michael Blatherwick
e694b0631f [1.6.x] Fixed typo in docstrings of MonthArchiveViews.
Backport of 270c9fe488 from master
2014-01-10 08:26:22 -05:00
Claude Paroz
5d99cd6877 [1.6.x] Fixed #21730 -- Removed superfluous db_index in custom auth docs
Thanks rafalp for the report.
Backport of c717ebbfec from master.
2014-01-04 16:13:21 +01:00
Tim Graham
2206321ff9 [1.6.x] Fixed a sentence in the session security docs; thanks claudep.
Backport of 4d27d311f6 from master
2014-01-03 12:04:18 -05:00
Tianyi Wang
7a4d2b8e3d [1.6.x] Fixed #21728 -- Corrected an inadvertent path change in docs/intro/contributing.txt.
Backport of e6800ea136 from master
2014-01-03 12:01:52 -05:00
Vajrasky Kok
0a4e36c68f [1.6.x] Fixed #21319 -- Added documentation for the Form.fields attribute.
Thanks pydanny for the report. Also, added documentation about
base_fields attribute and its difference with fields attribute.

Backport of ea83102d0f from master
2014-01-02 19:45:22 -05:00
Tim Graham
8841cbbe82 [1.6.x] Fixed #21722 -- Added a warning for avoiding XSS vulnerabilities when reusing built-in filters.
Thanks Stephen McDonald for the suggestion.

Backport of 07711e9997 from master
2014-01-02 16:36:50 -05:00
Frank Tobia
5dcb287060 [1.6.x] Fixed typos. Changed grammar.
Backport of 6dd8631617 from master
2014-01-02 16:25:51 -05:00
Nathan Smith
8b1de986f6 [1.6.x] Fixed minor typos.
Backport of 44d40ba521 from master
2014-01-02 16:22:21 -05:00
Florian Apolloner
865723f267 [1.6.x] Fixed set literals for python 2.6 2014-01-01 15:56:42 +01:00
Matt Robenolt
ea82e98f8c [1.6.x] Django sees more than 1mm hits per hour
Disqus regularly does 40-50k/s

Backport of a502bbb2f0 from master
2013-12-31 19:42:45 -05:00
Loic Bistuer
3fd16e6261 [1.6.x] Fixed #21581 -- Fixed a number of issues with collectstatic.
When STATIC_ROOT wasn't set, collectstatic --clear would delete
every files within the current directory and its descendants.

This patch makes the following changes:

Prevent collectstatic from running if STATIC_ROOT isn't set.

Fixed an issue that prevented collectstatic from displaying the
destination directory.

Changed the warning header to notify when the command is run
in dry-run mode.

Backport of 4befb3015c from master
2013-12-31 15:04:22 -05:00
Tim Graham
a228545026 [1.6.x] Fixed #21484 -- Documented that SQL logging does not include "framework level" queries.
Backport of 4d8d76e7a8 from master
2013-12-31 13:03:25 -05:00
Tim Graham
a05ca51c08 [1.6.x] Fixed #19395 -- Added a simple example logging config.
Thanks ken.nelson at maclaren.com.

Backport of 69f0249d7b from master
2013-12-31 10:23:11 -05:00
Tim Graham
f82eb49301 [1.6.x] Fixed #21701 -- Improved testing doc titles and added testing/tools.txt.
Thanks cjerdonek for the suggestion.

Backport of 9953e98e6a from master
2013-12-31 08:32:58 -05:00
Florian Apolloner
e99eeefe44 [1.6.x] Decode mails using the message encoding.
Backport of bfe9052831c6d7ad7501b71c884525b3b471eebc from master.
2013-12-31 12:10:22 +01:00
Florian Apolloner
d18f99dfc7 [1.6.x] Changed console and filebackend to use msg.as_bytes to output the data as it would get send via smtp.
Backport of c988745cca1225496bfd36910dc3cec5065d8cc4 from master.
2013-12-31 12:09:52 +01:00
Florian Apolloner
7c674dd1f1 [1.6.x] Introduced as_bytes for SafeMIMEText (and other SafeMIME-classes).
This is to provide a consistent interface (namely bytes) for the smtp
backend which after all sends bytes over the wire; encoding with as_string
yields different results since mails as unicode are not really specified.

as_string stays for backwardscompatibilty mostly and some debug outputs.
But keep in mind that the output doesn't match as_bytes!

Backport of 5dfd824d38ec7d1f695494e46d603e89cae68661 from master.
2013-12-31 12:05:59 +01:00
Tim Graham
2d554d29f2 [1.6.x] Fixed #21708 -- Added some headings to separate unrelated topics.
Thanks ashley at ashleymills.com for the suggestion.

Backport of 270f7e2167 from master
2013-12-30 17:57:44 -05:00
Tim Graham
51d6a7d53e [1.6.x] Fixed #21710 -- Documented User.get_short_name()
Thanks Keryn Knight for the report.

Backport of 0150830687 from master
2013-12-30 17:46:16 -05:00
Florian Apolloner
ed167e53a5 [1.6.x] Worked around a bug in python 3.3.3. Refs #21093
Backport of 280c1a65ccacd679bf298bf2b169ff01e7266b8e from master.
2013-12-28 16:01:40 +01:00
Florian Apolloner
35a447a263 [1.6.x] Fixed #21093 -- Ensured that mails are not base64 encoded on python 3.3.3+.
Thanks to Arfrever for the report and Aymeric for the review.

Backport of f28ea0230846c81e9b6725454bb3a10df24678aa from master.
2013-12-28 12:48:54 +01:00
Claude Paroz
2d08390d70 [1.6.x] Fixed #21618 -- Added hints about openlayers.js hosting
Thanks kz26 for the report and Tim Graham for the excellent
review.
Backport of b7a7baa554 from master.
2013-12-28 11:11:58 +01:00
Tim Graham
3b79fbabcd [1.6.x] Fixed #21650 -- Corrected bad advice for plural translation.
Thanks nedbatchelder and claudep.

Backport of 85270ef3f5 from master
2013-12-27 10:02:41 -05:00
Tim Graham
f3a9a76123 [1.6.x] Fixed #21582 -- Corrected URL namespace example.
Thanks oubiga for the report.

Backport of 025ec2e7fe from master
2013-12-26 20:06:29 -05:00
Tim Graham
62f282a265 [1.6.x] Fixed #21629 -- Added instructions for loading MySQL time zone definitions.
Thanks Aymeric for the suggestion.

Backport of d8d83777eb from master
2013-12-26 15:50:49 -05:00
Loic Bistuer
3bb7de8c7c [1.6.x] Fixed typo and slightly improved error message when db is missing time zone definitions.
Refs #21432.

Backport of 32e75803be from master
2013-12-26 13:07:04 -05:00
Jon Lønne
0e8138349e [1.6.x] Fixed #21627 -- Added unicode_literals to changepassword command.
Fixed a crash when executing changepassword command when the user object
representation contained non-ASCII characters.

Backport of 398642fd9b from master
2013-12-26 07:46:12 -05:00
Claude Paroz
b536ad09ca [1.6.x] Fixed #21662 -- Kept parent reference in prepared geometry
Thanks Robert Scott for the report.
Backport of 542198c1d0 from master.
2013-12-26 11:14:25 +01:00
Tim Graham
847d2ab5b3 [1.6.x] Fixed #21663 -- Added missing WSGIPythonPath in mod_wsgi config.
Thanks carrie.hazelton at altamiracorp.com for the report.

Backport of e82e7ae1e8 from master
2013-12-25 06:11:20 -05:00
Unai Zalakain
54b04cc8e6 [1.6.x] Fixed #21213 -- Added docs for Django's mailing lists.
Added docs/internals/mailing-lists.txt documenting the use of django's
mailing lists. All references across docs changed to point to this page.

The referencing makes use of substitution because there's no way to make
a :ref: link in a non-inline fashion in Sphinx. It also makes use of
rst_epilog Sphinx conf for making this substitutions across all the
docs.

Backport of 3895d8899d from master
2013-12-19 09:24:13 -05:00
Tim Graham
438f9edff6 [1.6.x] Fixed #21585 -- Updated some links to 3rd party database projects.
Thanks graeme.perrow at sap.com for the original report.

Backport of 23d9f517dc from master
2013-12-18 18:50:36 -05:00
Tim Graham
07d3d57ded [1.6.x] Fixed #21613 -- Removed a hardcoded input id from the tutorial.
Thanks Bruno Brouard for the report.

Backport of cc2d960274 from master
2013-12-18 18:37:06 -05:00
Kevin Christopher Henry
dd7e2925dd [1.6.x] Fixed #21632 -- Docs: Removed example with callable as query parameter
Using callables as query parameters is undocumented and not working,
so this changes an example from the ForeignKey.limit_choices_to
documentation that uses it.

Backport of d34c8c338a from master
2013-12-18 12:37:56 -05:00
Tianyi Wang
60517c9c09 [1.6.x] Fixed #21625 -- incorrect documentation for DiscoverRunner.build_suite
Backport of b62031441b2e1cb1eeb7e1d6f254c553643add96 from master.
2013-12-18 14:30:20 +01:00
Baptiste Mispelon
e888760854 [1.6.x] Added some internal links to render_to_string documentation.
Backport of 1689744aee1f13b2f4e270ce63cea143eb6d868e from master.
2013-12-15 23:03:26 +01:00
Tim Graham
6a36b71fc2 [1.6.x] Fixed typo in docs/ref/models/fields.txt
Backport of dfc95d240d from master.
2013-12-15 10:51:58 -05:00
Baptiste Mispelon
5192713285 [1.6.x] Added internal link to i18n documentation.
Backport of e904d421d06bb53fbc9f55bd129b0b213d9908c5 from master.
2013-12-15 01:51:21 +01:00
Alasdair Nicol
15ab4936d7 [1.6.x] Fixed #21539 -- Added example of modelformset_factory's form argument
Backport of 1fa681ee11 from master
2013-12-14 16:36:21 -05:00
Chris Jerdonek
ad8a7819f2 [1.6.x] Fixed #21614 -- improved docs on configuring email for development.
Backport of d599b590eb from master
2013-12-14 11:21:22 -05:00
Chris Jerdonek
f39579e09f [1.6.x] Fixed link text for "Testing in Django" in tutorial 5.
Backport of e1cfc4b96a from master
2013-12-14 10:42:36 -05:00
johannes-gehrs
eb4079597d [1.6.x] Fixed #21580 -- Clarified why render() does not return a TemplateResponse object.
Backport of f685f94c98 from master
2013-12-13 18:59:27 -05:00
Tim Graham
704f581081 [1.6.x] Added 1.6.2 release notes stub.
Backport of ccd80dc3b6 from master
2013-12-13 18:55:35 -05:00
Claude Paroz
f05b381845 [1.6.x] Removed weird unicode char in some de po files
Refs #21601.
2013-12-13 08:21:20 +01:00
Tim Graham
1c18c7f8ae [1.6.x] Post release version bump. 2013-12-12 15:15:35 -05:00
Tim Graham
194c5ab056 [1.6.x] Added 1.6.1 release date. 2013-12-12 15:06:47 -05:00
Jacob Kaplan-Moss
073eed9517 Bumped version number for 1.6.1. 2013-12-12 13:48:32 -06:00
Ben Spaulding
de1d5d5df5 [1.6.x] Fixed #21594 -- Added note about model formsets deleting objects.
This behavior has been fixed in 65e03a424e. refs #10284.
2013-12-11 14:39:29 -05:00
Tim Graham
7a2910d790 [1.6.x] Additions and edits to the 1.6.1 release notes. 2013-12-11 12:34:50 -05:00
Claude Paroz
ebf55d32c1 [1.6.x] Added release note for #21443 2013-12-11 16:37:25 +01:00
Claude Paroz
b953b27a92 [1.6.x] Added release note for #21358 2013-12-11 16:13:55 +01:00
Claude Paroz
3f9d00e591 [1.6.x] Added release note for #21473 2013-12-11 16:06:29 +01:00
Ludwik Trammer
c558a43fd6 [1.6.x] Fixed #21473 -- Limited language preservation to logout
Current language is no longer saved to session by LocaleMiddleware
on  every response (the behavior introduced in #14825).
Instead language stored in session is reintroduced into new session
after logout.
2013-12-11 15:49:27 +01:00
Claude Paroz
d32637d81b [1.6.x] Fixed #21510 -- Readded search reset link in changelist search bar
Thanks moritz.pfeiffer at alp-phone.ch for the report and
Tim Graham for the initial patch.
Backport of c7c647419c from master.
2013-12-11 15:32:10 +01:00
Claude Paroz
64483b4831 [1.6.x] Updated translations from Transifex 2013-12-10 21:14:22 +01:00
Christian Schmitt
d6d700fc6d [1.6.x] Fixed #21560 -- Added missing 'slug' field in example code.
Backport of 744aac6dac from master
2013-12-10 07:25:43 -05:00
Claude Paroz
ef9832f148 [1.6.x] Updated a bunch of hyperlinks in documentation
Backport of 626bdf648 from master.
2013-12-08 18:48:30 +01:00
Claude Paroz
45c0d2e1ce [1.6.x] Fixed #21551 -- Reenabled loading fixtures from subdirectory
This was a regression in Django 1.6 that was only partially
restored in 839940f27f.
Thanks Jonas Haag for the report.
Backport of 41ebc4838d from master.
2013-12-07 10:48:34 +01:00
Claude Paroz
34c4b93c84 [1.6.x] Fixed #21568 -- Added missing ModelMultipleChoiceField to_python method
Thanks dibrovsd at gmail.com for the report and Simon Charette
for the review.
Backport of 8a9c8bb90 from master.
2013-12-07 10:21:05 +01:00
Baptiste Mispelon
7d75a33331 [1.6.x] Added fix for #21530 to 1.6.1 release notes.
Backport of 19b22d4f0e0eafec1aafb9489f0830ae572b5db5 from master.
2013-12-07 03:40:58 +01:00
Baptiste Mispelon
5a4884a978 [1.6.x] Fixed #21530 -- Prevent AttributeError in default URLconf detection code.
Thanks to @dmyerscoug for the report and original patch
and to @alasdairnicol for the added tests.

Backport of a020dd0a99da13d0f024d42c46f01d8f503e9d5e from master.
2013-12-07 03:30:07 +01:00
Alasdair Nicol
4f9590836c [1.6.x] Fixed #21562 -- Warned against using the same app name as a django contrib app.
Thanks yourcelf for the report.

Backport of 317fd13c7a from master
2013-12-05 19:10:49 -05:00
Ramiro Morales
656a3adff7 [1.6.x] Corrected setting name in gis test error message.
e36c165b14 from master.
2013-12-05 18:35:00 -03:00
Alasdair Nicol
49fab30496 [1.6.x] Listed 1.6.x releases in descending order
Backport of 0daa2f1bf1 from master
2013-12-04 17:21:27 -05:00
Aymeric Augustin
6691abcdf0 [1.6.x] Fixed #21558 -- Support building CHM files.
Thanks Michał Pasternak.

Backport of cd9e85ec from master.
2013-12-04 16:51:37 +01:00
Ramiro Morales
c8cf49e5c4 [1.6.x] Added link to localized formatting doc from main index.
abb04f1f3f from master.
2013-12-04 10:28:43 -03:00
Tim Graham
3f8583a2c8 [1.6.x] Added a warning regarding risks in serving user uploaded media.
Thanks Preston Holmes for the draft text.

Backport of df6760f12c from master
2013-12-02 13:49:47 -05:00
Alasdair Nicol
87433c30c7 [1.6.x] Fixed #21538 -- Added numpy to test/requirements/base.txt
Thanks Tim Graham for the report

Backport of c75dd664cf from master
2013-12-02 13:38:46 -05:00
Claude Paroz
c8b4ac814c [1.6.x] Fixed #21358 -- Allowed runserver on non-English locales
Thanks svartalf for the report.
Backport of 2080bce69 from master.
2013-12-02 10:35:27 +01:00
Tim Graham
adb8c563ed [1.6.x] Fixed incorrect type for max_length.
Backport of 3b60ffa334 from master
2013-12-01 14:26:42 -05:00
Tim Graham
2f42bbaba7 [1.6.x] Fixed #21535 -- Fixed password hash iteration upgrade.
Thanks jared_mess for the report.

Backport of fddb0131d3 from master
2013-11-30 14:35:38 -05:00
Claude Paroz
14ddc1b517 [1.6.x] Fixed #21496 -- Fixed crash when GeometryField uses TextInput
Thanks Rhett Garber for the report and initial patch.
Backport of 34b8a3855 from master.
2013-11-28 18:34:33 +01:00
Baptiste Mispelon
02f9e90fdf [1.6.x] Fixed #21515 -- Corrected example of template.Context in documentation.
Thanks to trac user oubiga for the report.

Backport of 077af42139db84d88f293ab5eadc989a9169dce1 from master.
2013-11-28 00:59:00 +01:00
Claude Paroz
655b8bb10b [1.6.x] Fixed #21448 -- Fixed test client logout with cookie-based sessions
Thanks Gunnar Scherf for the report and the suggested patch.
Backport of 384816fcc from master.
2013-11-26 20:42:54 +01:00
Richard Xia
6cd5c67b69 [1.6.x] Fixed #21355 -- try importing _imaging from PIL namespace first.
Backport of 5725236c3e from master
2013-11-26 19:04:23 +02:00
Ludwik Trammer
593ec42ad1 [1.6.x] Fixed #21507 -- Corrected default widget information for FileField
Backport of 70e61310d6 from master
2013-11-25 08:27:27 -05:00
Tim Graham
df18cc632c [1.6.x] Fixed typo in previous commit; refs #21490.
Backport of 03bc0a8ac5 from master
2013-11-24 16:29:10 -05:00
Tim Graham
af65860c5b [1.6.x] Fixed #21490 -- Fixed custom admin URL reverse example.
Thanks glarrain for the report.

Backport of bfe7377adb from master
2013-11-24 15:19:34 -05:00
Claude Paroz
432de54611 [1.6.x] Fixed #21486 -- Prevented settings config in signal connection
This was particularly problematic in the chain get_wsgi_application
-> db.connections import -> signal connection -> settings configuration.
Thanks Jon Dufresne for the report.
Backport of 42fef294464 from master.
2013-11-23 18:49:06 +01:00
Ramiro Morales
8750296918 [1.6.x] Fixed #21488 -- Multiple locales treatment in i18n commands.
Removed multiple locales separated by commas variation (that wasn't
working as documented) in favor of simply allowing use of the
``--locale``/``-l`` options more than once for ``makemessages`` and
``compilemessages``.

Thanks Romain Beylerian for the report and Claude, Simon for their help.
2013-11-23 11:02:30 -03:00
Aymeric Augustin
ddd3926280 [1.6.x] Removed obsolete deprecation notes. 2013-11-23 14:57:30 +01:00
Loic Bistuer
a0ab432f2f [1.6.x] Improved docs for ModelFormSet.clean().
Backport of 033b26173b from master
2013-11-22 19:50:46 -05:00
mlissner
4212ae6fef [1.6.x] Noted that localmem is the default cache.
Backport of c456ea4ec8 from master
2013-11-22 19:39:54 -05:00
Bouke Haarsma
d55df0b810 [1.6.x] Fixed #21443 -- Cannot show debug info on PY3's importlib
Thanks productions@zaziork.co.uk for the review.
Backport of 18185724e6 from master.
2013-11-22 20:37:09 +01:00
Cody Scott
ea0d97c470 [1.6.x] Fixed sentence structure in docs/internals/contributing/triaging-tickets.txt
Backport of 4a54b69e88 from master
2013-11-22 11:02:50 -05:00
Aymeric Augustin
1eddca0a52 [1.6.x] Fixed #21487 -- Session cannot store tzinfo instances anymore.
Thanks filipp for the report.
2013-11-22 15:32:22 +01:00
Claude Paroz
9cbcd06b1a [1.6.x] Fixed #21405 -- Prevented queryset overwrite in BaseModelAdmin
Thanks guido@20tab.com for the report and Tim Graham for the
analyze.
Backport of 1718b5256c from master.
2013-11-21 22:24:00 +01:00
Anssi Kääriäinen
5730bf2819 [1.6.x] Fixed #21431 -- GenRel->FK list_filter regression in admin
Report, analysis and tests from stephenmcd.

Backpatch of 752d3d70da6291039f33781a0a2ef6f3b7c5fcb5 from master.
2013-11-21 15:34:04 +02:00
Markus Amalthea Magnuson
47abfa237e [1.6.x] Fixed #21427 -- Clearly state integer field value ranges in docs
Added an explicit mention of the exact value ranges for integer type
fields that are safe in all databases supported by Django. Also, put
all value numbers inside double ticks.

Backport of b6a6cf4ab791b092e18ab16537aa88dd7ae9bc36 from master.
2013-11-21 14:17:58 +01:00
Claude Paroz
d8fdee7db8 [1.6.x] Fixed #21472 -- Fixed inline formsets display when parent pk is 0
Thanks agale031176@gmail.com for the report.
Backport of fafb6cf049b from master.
2013-11-20 21:37:35 +01:00
Dražen Lučanin
6f48ae0b0f [1.6.x] Recommended setuptools in the reuseable app tutorial.
setuptools has merged with distribute.

Backport of b5eef8535a from master.
2013-11-19 16:21:06 -05:00
Baptiste Mispelon
20e322f4bf [1.6.x] Added more examples to the get_object_or_404 documentation.
Backport of ebfa508fa32b27de6f3e2ca04c81b46408b0506e from master.
2013-11-19 19:56:06 +01:00
Rocky Meza
ac2ef4af7c [1.6.x] Fixed the base class note in the Date Views docs.
Backport of 42197e31aa from master
2013-11-19 10:25:48 -05:00
Tim Graham
44469af34b [1.6.x] Fixed typo in topics/http/sessions.txt.
Backport of 9348fc5628 from master
2013-11-18 19:11:33 -05:00
Claude Paroz
833f7d11e8 [1.6.x] Fixed #21457 -- Allowed fixture file name to contain dots
Thanks Keryn Knight for the report.
Backport of 97ac22ebfc from master.
2013-11-18 20:34:39 +01:00
Claude Paroz
62bb4fc806 [1.6.x] Added non-breaking spaces for humanize in Russian 2013-11-18 20:08:01 +01:00
Baptiste Mispelon
4c9362d81f [1.6.x] Added more internal links in the management command documentation.
Backport of bc0413cbc6fd472371e907f17303c5ddcc9b4642 from master.
2013-11-18 19:28:29 +01:00
Claude Paroz
9f59149cfe [1.6.x] Added release note for TypedChoiceField coerce limitation
Thanks Elec for the report and Simon Charette for the review.
Refs #21397.
Backport of 4a00f132e0 from master.
2013-11-18 18:09:54 +01:00
Dominic Rodger
a9c50fccf2 [1.6.x] Fixed #20852 - Fixed incorrectly generated left quotes in docs.
Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.

Instances of the problem were found by looking for
">&#8216;" in the generated HTML.

Backport of c33d1ca1d98003de29cdecb6080b52c5c52139bd from master.
2013-11-18 16:03:00 +01:00
Tim Graham
2b03d53438 [1.6.x] Fixed #21240 -- Added 1.5 release note for OneToOneField/select_related change.
Thanks marcin at sokrates.pl.

Backport of ba63b9895b from master
2013-11-18 09:33:53 -05:00
Tim Graham
a776e3f420 [1.6.x] Fixed #21404 -- Added session.set_expiry() note to 1.6 release notes.
Thanks pwr for the suggestion.

Backport of ffdae5b66d from master
2013-11-18 08:00:16 -05:00
Claude Paroz
e85baa813f Updated humanize translations and added release note.
Refs #21415.
2013-11-17 21:20:44 +01:00
Anssi Kääriäinen
cbf8784d20 [1.6.x] Fixed a regression caused by fix for #21428
On Python 3 sorting Fields mixed with GenericForeignKeys doesn't work
as GenericForeignKey isn't a subclass of django.db.models.fields.Field.

Refs #21428.

Backport of 326539f6a4 from master
2013-11-16 20:55:37 +02:00
Anssi Kääriäinen
1fd762c106 [1.6.x] Fixed #21428 -- editable GenericRelation regression
The GenericRelation refactoring removed GenericRelations from
model._meta.many_to_many. This had the side effect of disallowing
editable GenericRelations in ModelForms. Editable GenericRelations
aren't officially supported, but if we don't fix this we don't offer any
upgrade path for those who used the ability to set editable=True
in GenericRelation subclass.

Thanks to Trac alias joshcartme for the report and stephencmd and Loic
for working on this issue.

Backpatch of 0e079e4331a8be4dbd18d5e5776116330b0a5e61 from master.
2013-11-16 20:15:46 +02:00
Tim Graham
e8dea1f35c [1.6.x] Fixed #21440 -- Typo #2 in topics/http/shortcuts.txt
Thanks alasdair.

Backport of d011714002 from master
2013-11-15 10:22:51 -05:00
Claude Paroz
882ee16f68 [1.6.x] Updated humanize translation catalog
Refs #21415
2013-11-15 15:49:07 +01:00
glts
1e2bbc3b71 [1.6.x] Fixed #21415 -- Replaced escape sequence by literal non-breaking space
Unfortunately, escape sequences (\x.. or \u....) do not fit well
with the gettext toolchain. Falling back to using literal char,
even if visibility is not ideal.

Backport of 7e0ebd74c from master.
2013-11-15 15:35:44 +01:00
Tim Graham
f2b5e9d5bb [1.6.x] Fixed #21440 -- Typo in topics/http/shortcuts.txt
Thanks olof.bjarnason at gmail.com for the report.

Backport of 6e9e6ca071 from master
2013-11-15 07:10:47 -05:00
Baptiste Mispelon
2a0039ba62 Fixed Python2.6 incompatibility caused by 67c30426c1370f5d6c39bd73888c3902c1c5f365. 2013-11-15 00:24:11 +01:00
Baptiste Mispelon
bdde6f6a03 [1.6.x] Added backported fixes to 1.6.1 release notes.
Backport of 8e6d1b97921dd3ead6afd5eb39fcd2c82244e106 from master.
2013-11-14 23:14:37 +01:00
Baptiste Mispelon
2cfff0cb72 Fixed wrong override_settings path introduced by 67c30426c1370f5d6c39bd73888c3902c1c5f365. 2013-11-14 23:09:20 +01:00
Loic Bistuer
67c30426c1 [1.6.x] Fixed #21432 -- DateTimeQuery now copies tzinfo when cloning.
Thanks Enrique Martínez for the report and @bmispelon for the tests.

Backport of 17ed99f3a3eea4bd27fa34be59c3582616ed8079 from master.
2013-11-14 21:39:24 +01:00
Matt Robenolt
0aa06bd378 [1.6.x] Propagate get_user_model exception from get_user
Fixes #21439

Backport of 3560ef04 from master.

Conflicts:
	django/contrib/auth/tests/test_auth_backends.py
2013-11-14 21:21:02 +01:00
Anssi Kääriäinen
c37b2e46b9 [1.6.x] Release notes for ORM changes in 1.6
Backport of 4301d6fa36 from master
2013-11-14 18:04:55 +02:00
Tim Graham
5b8c8c462d [1.6.x] Added release note for #21410; thanks Loic.
Backport of 94d567ba30 from master
2013-11-13 12:25:31 -05:00
Loic Bistuer
b107421acf [1.6.x] Fixed #21410 -- prefetch_related() for ForeignKeys with related_name='+'
Regression introduced by commit 9777442.

Thanks to trac username troygrosfield for the report and test case.

Backpatch of cb83448891f2920c926f61826d8eae4051a3d8f2 from master.

Conflicts:

	tests/prefetch_related/models.py
2013-11-13 07:41:30 +02:00
Baptiste Mispelon
b6acc4f749 [1.6.x] Removed a mention of Form._errors from the documentation.
Also removed a sentence that was incorrect: raising a
`ValidationError` inside `Form.clean` doesn't clear the
`cleaned_data` attribute.

Thanks to loic84 and timograham for the review.

Backport of 9aa6d4bdb6618ba4f17acc7b7c0d1462d6cbc718 and
0048ed77c7016a03aed6dbc255a6372f3df2ccd5 from master.
2013-11-12 20:54:37 +01:00
Bernardo Pires
4aed1ee339 [1.6.x] Fixed #21372 -- Corrected docs regarding translating LANGUAGES.
Corrected LANGUAGES documentation on how to translate language
names. Now using django.utils.translation.ugettext_lazy instead
of a dummy gettext() function.

Thanks to Salvatore for the report.

Backport of 8bc350b38516d8c3a14aed113dd3402b9375b75c from master.
2013-11-10 00:02:13 +01:00
Tim Graham
4b9e932fd4 [1.6.x] Fixed #21398 -- Fixed BCryptSHA256PasswordHasher with py-bcrypt and Python 3.
Thanks arjan at anymore.nl for the report.

Backport of d15985d81f from master
2013-11-09 10:21:19 -05:00
Tim Graham
c9076a408c [1.6.x] Fixed spelling of compatibility. 2013-11-09 10:18:55 -05:00
Baptiste Mispelon
86e72f5ba9 [1.6.x] Fixed versionadded misuse in the admin documentation.
Backport of c82e850eed2eb3957ed792908b73622ebd3034a7 from master.
2013-11-09 15:10:14 +01:00
Cody Scott
82e756da83 [1.6.x] Noted that .clear() will delete intermediary models
Backport of a8e84521c4 from master
2013-11-08 19:25:21 -05:00
Tom Scholl
c9917f4c83 [1.6.x] Fixed docs for EmailMessage extra_headers attribute
The EmailMessage documentation describes the initialization parameters
and states they 'can be set at any time prior to calling the send()
method.'. However, the 'headers' parameter's corresponding attribute is
called 'extra_headers'.

Backport of cab72a439b from master
2013-11-08 18:39:53 -05:00
glts
d4b1724b36 [1.6.x] Added missing parameter in npgettext_lazy docs
Backport of 413307fe35 from master
2013-11-08 18:35:43 -05:00
Claude Paroz
3c8879f092 [1.6.x] Removed obsolete locale restriction admonition
Refs #14461. Thanks Ramiro Morales for pointing this.
Backport of b780d03d62 from master.
2013-11-08 16:53:12 +01:00
Baptiste Mispelon
6c34e18bd4 [1.6.x] Fixed #21396: Document backwards-incompatible change in RedirectView.get_redirect_url.
Thanks to Tim for the review.

Backport of f2e0266be766b0b6149377b90ae3ddc41c91c3fb from master.
2013-11-08 10:55:11 +01:00
Tim Graham
6026a5091b [1.6.x] Added 1.4.10 release notes.
Backport of c29dd76f40 from master
2013-11-07 09:42:47 -05:00
Sylvain Bellemare
b3da4cc092 [1.6.x] Removed no longer relevant word
Backport of 3935b0f263 from master
2013-11-07 09:32:26 -05:00
James Bennett
c89a56d9fe [1.6.x] Correctly update development-status classifier. 2013-11-06 08:59:40 -06:00
James Bennett
a71ff76235 [1.6.x] Bump version numbers for 1.6 release. 2013-11-06 07:54:49 -06:00
Claude Paroz
84b9ab7c1d [1.6.x] Pulled Transifex translations for contrib apps 2013-11-05 21:44:03 +01:00
Claude Paroz
72bc925491 [1.6.x] Pulled Transifex translations for Django core 2013-11-05 20:02:25 +01:00
Claude Paroz
66bf6b3f85 [1.6.x] Fixed #21373 -- Typo fixed in i18n docs
Thanks rpq at winscores.com for the report.
Backport of 88b9d4ff3a from master.
2013-11-02 19:15:20 +01:00
Tim Graham
33503c57ef [1.6.x] Fixed spelling ("dependant" -> "dependent")
Dependent means reliant on.
A dependant is a person like a child or spouse.

Thanks Andrew Wilcox for the report.

Backport of 090315f5df from master
2013-11-01 21:32:05 -04:00
Sylvain Bellemare
35fd14cf42 [1.6.x] Fixed typo -- "a" user, not "an" user
Backport of c7dabe49dd from master
2013-11-01 19:28:19 -04:00
Claude Paroz
3f1b20841a [1.6.x] Fixed #21364 -- Specified InnoDB full-text support from MySQL 5.6.4 on
Thanks thevlad at gmail.com for the report.
Backport of 89116cf24a from master.
2013-11-01 11:02:11 +01:00
Claude Paroz
f03c699159 [1.6.x] Fixed #21359 -- Corrected MySQL collation name in databases docs
Thanks k_sze for the report.
Backport of 67c6c1a7c from master.
2013-11-01 10:46:39 +01:00
Claude Paroz
8f104bb8d5 [1.6.x] Fixed #21339 -- Documented removal of some form field error messages 2013-10-31 17:53:05 +01:00
Tim Graham
5217d01b77 [1.6.x] Fixed #21347 -- Added missing JS variable declaration.
Thanks szymon.barglowski at gmail.com for the report.

Backport of 0b1d425a41 from master
2013-10-30 16:00:13 -04:00
Tim Graham
d774cb219c [1.6.x] Fixed #21306 -- Documented lower-casing behavior of title filter.
Backport of eafe279120 from master
2013-10-30 09:35:05 -04:00
Tim Graham
1cdf7f83ff [1.6.x] Fixed #21294 -- Clarified the logout next_page argument.
Thanks wim at go2people.nl for the report.

Backport of 51e6575472 from master
2013-10-30 09:26:35 -04:00
Antoine Catton
142757c61e [1.6.x] Documented the limitation on sep argument to Signer
Co-Authored-By: Gavin Wahl <gwahl@fusionbox.com>

Backport of e9a356a695 from master
2013-10-30 08:27:19 -04:00
Tim Graham
da0c7723fa [1.6.x] Fixed #21316 -- Documented that modifying safe strings makes them unsafe.
Thanks dev@simon.net.nz for the suggestion and vijay_shanker for the patch.

Backport of 1edef50880 from master
2013-10-30 08:12:09 -04:00
Tim Graham
aa645d20df [1.6.x] Fixed #21337 -- Documented removal of django.core.servers.basehttp.WSGIServerException
refs 2ca00faa913754cd5860f6e1f23c8da2529c691a

Backport of b47a052eb5 from master
2013-10-30 07:47:32 -04:00
Claude Paroz
ec0a3f5085 [1.6.x] Removed relative usage of import_module
Python 3 version of importlib doesn't support this syntax.
Partial backport of fdd7a355bf. Refs #21335.
2013-10-26 23:22:21 +02:00
Andrey Antukh
e052ada0f6 [1.6.x] Fixed #21335 -- Use importlib from python3 when using python3
Backport of 3351e94ffa from master.
2013-10-26 22:55:10 +02:00
Tim Graham
747f77552a [1.6.x] Fixed #21325 -- Added missing argument to permission_required decorator.
Backport of cc2049cdd7 from master
2013-10-25 17:37:39 -04:00
Paolo Melchiorre
26e4576681 [1.6.x] Fixed typo in docs/releases/1.4.9.txt.
Backport of 3b0293370a from master
2013-10-25 07:55:41 -04:00
Tim Graham
bc62a20a3e [1.6.x] Bumped release date for 1.5.5 & 1.4.9.
Backport of 4ce5c119b5 from master
2013-10-23 18:29:09 -04:00
Ramiro Morales
7f5555db2b [1.6.x] Workaround admin scripts test failures on Windows+Python 3.
Change strategy used to examine instrumented output to acommodate the
fact that on Windows, where the path separator is '\', repr() of Python
modules has changed in Python 3 to use escaped backslashes in the FS
path section (e.g.
'C:\\python3x\\Lib\\site-packages\\django\\contrib\\auth\\models.py')
without having to special-case based on platform.

c04f3fc686 from master.
2013-10-23 09:27:18 -03:00
Shai Berger
27f3f34136 Fixed #13245: Explained Oracle's behavior w.r.t db_table
and how to prevent table-name truncation

Thanks russellm & timo for discussion, and timo for review.

Backported from master 317040a73b77be8f8210801793b2ce6d1a69301e
2013-10-23 15:01:05 +03:00
James Bennett
9c982053f4 [1.6.x] Bump version number for 1.6 release candidate. 2013-10-22 21:56:12 -05:00
Ramiro Morales
bcc65c13a0 [1.6.x] Fixed #21307 -- Moved TransRealMixin to django.test.utils.
51d2e1fb23 from master.
2013-10-22 22:40:01 -03:00
Tim Graham
2e74d6cb53 [1.6.x] Added 1.5.5 and 1.4.9 release notes
Backport of 2eb8f15516 from master
2013-10-22 20:24:26 -04:00
Tim Graham
4499dc81e2 [1.6.x] Fixed #21304 -- Typo in docs/topics/testing/advanced.txt
Thanks joao at silvaneves.org for the report.

Backport of 9704c49d59 from master
2013-10-22 12:06:16 -04:00
Ramiro Morales
b987fb188d [1.6.x] Decode from UTF-8 explicitly when reading a text file in makemessages.
This shows itself with Python 3 under Windows where UTF-8 usually isn't
the default file I/O encoding and caused one failure and three errors
in our test suite under that platform setup.

b5f52647fe from master.
2013-10-22 07:38:02 -03:00
Ramiro Morales
7130609654 [1.6.x] Fixed an I18N test class tearDown method.
a3690168cb from master.
2013-10-22 06:37:18 -03:00
Anssi Kääriäinen
6781dc6243 [1.6.x] Fixed #21249 -- variable name typo in compiler.get_grouping()
The typo could have consequences in exceptional cases, but I didn't
figure out a way to actually produce such a case, so not tests.

Report & patch by Michael Manfre.

Backport of 86c248aa64 from master
2013-10-21 22:10:42 +03:00
Tim Graham
86373dc63e [1.6.x] Added docs for the hasher's iteration count changes.
Backport of 28b70425afb2fb8bcbec09d249e37fa786f8a155 from master.
2013-10-21 20:33:27 +02:00
Florian Apolloner
823951ec55 [1.6.x] Force update of the password on iteration count changes.
Backport of 7d0d0dbf26a3c0d16e9c2b930fd6d7b89f215946 from master.
2013-10-21 20:33:03 +02:00
Florian Apolloner
37aea82b1c [1.6.x] Fixed #21253 -- PBKDF2 with cached HMAC key
This gives a 2x speed increase compared to the existing implementation.

Thanks to Steve Thomas for the initial patch and Tim Graham for finishing it.

Backport of 1e4f53a6eb8d1816e51eb8bd8f95e704f6b89ead from master.
2013-10-21 19:55:28 +02:00
Riccardo Magliocchetti
15a6667a70 [1.6.x] Fixed #21296 -- Added docs for PostgreSQL and unix domains sockets.
Backport of 1e39982b6e from master
2013-10-21 13:10:41 -04:00
Claude Paroz
0c850e2885 [1.6.x] Fixed #21291 -- Ensured inactive users cannot reset their passwords
Thanks kz26 for the report and the suggested fix. Refs #19758.

Backport of 5f5259036 from master.
2013-10-19 10:53:43 +02:00
Claude Paroz
742585b59c [1.6.x] Cleaned formatting/comments in PasswordResetFormTest
Backport of 59a880863 from master.
2013-10-19 10:52:58 +02:00
Juergen Schackmann
f198abc7e4 [1.6.x] Fixed #21212 -- Documented the reverse name for OneToOneField.
Thanks bjb at credil.org for the report.

Backport of f8632572ad from master
2013-10-18 16:22:41 -04:00
Tim Graham
5bb975a139 [1.6.x] Added a warning regarding session security and subdomains.
Backport of a3372f67cb from master
2013-10-18 09:44:29 -04:00
Tim Graham
fa90b855b2 [1.6.x] Fixed ReST error in 1.6. release notes.
Backport of 651bb73ab3 from master
2013-10-18 08:47:59 -04:00
Tim Graham
dc8176eb3a [1.6.x] Fixed bug causing CSRF token not to rotate on login.
Thanks Gavin McQuillan for the report.

Backport of ac4fec5ca2 from master
2013-10-18 08:33:00 -04:00
Claude Paroz
621fc1f1d7 [1.6.x] Fixed #21284 -- Prevented KeyError swallowing in fetch_command
Thanks wildfire for the report.

Backport of 3514bcb251 from master.
2013-10-18 14:05:26 +02:00
Tim Graham
37afcbeb92 [1.6.x] Removed 1.6 release note text regarding password limit length.
This changed was reverted in 5d74853e156105ea02a41f4731346dbe272c2412.

Backport of d97bec5ee3 from master
2013-10-17 19:00:08 -04:00
Claude Paroz
b2f9c74ed1 [1.6.x] Fixed #21282 -- Made HttpResponse.serialize_headers accept latin-1
Thanks Raphaël Barrois for the report and the initial patch and
Aymeric Augustin for the review.

Backport of a14f087233 from master.
2013-10-17 18:15:56 +02:00
Tianyi Wang
1241a2cc10 [1.6.x] Improvement on InlineFormSet doc, refs #21006
Backport of 944a2bb7c1 from master
2013-10-15 09:58:51 -04:00
Tianyi Wang
ecfd958c84 [1.6.x] Fixed #21006 -- Added example code for overriding methods on an InlineFormSet.
Thanks treysta at gmail.com for the suggestion.

Backport of 9bfe66164e from master
2013-10-15 07:36:37 -04:00
Sorcha Bowler
07ebd23254 [1.6.x] Fixed #21223 -- Added form.id_for_label to topic guide.
Thanks ebertti at yahoo.com.br for the suggestion.

Backport of 018e2c055a from master
2013-10-14 18:43:29 -04:00
Claude Paroz
ba9cf9596b [1.6.x] Fixed #21269 -- Don't crash when CommandError contains non-ascii
Thanks kontakt@eikefoken.de for the report.

Backport of 42a67ec1cd from master.
2013-10-14 21:28:29 +02:00
Bouke Haarsma
7f566fdb4c [1.6.x] Fixed #20962 -- Documented that template tag render() may raise exceptions.
Thanks Keryn Knight for the report.

Backport of e077224f4a from master
2013-10-14 11:55:12 -04:00
Loic Bistuer
8222a48253 [1.6.x] Clarfied the ModelForm docs with respect to generated vs. declared fields.
The ModelForm docs suggested that fields defined declaratively override
default fields generated from the form Meta.

This is conceptually wrong, especially with inheritance in mind. Meta is
usually defined on the topmost ModelForm subclass, while fields can come
from anywhere in the MRO, especially base classes; therefore we suggested
that something defined in a base class override something from a subclass.

This patch rephrases the docs around the idea that Meta is used to generate
*missing* fields.

Refs #8620, #19617.

Thanks @mjtamlyn and @timgraham for the review.

Backport of 54cd930baf from master
2013-10-14 10:55:41 -04:00
Bouke Haarsma
da181056a9 [1.6.x] Fixed #21210 -- Documented when runserver doesn't auto-restart.
Thanks gergely at polonkai.eu for the suggestion.

Backport of 9b7d38ed5a from master
2013-10-14 10:38:30 -04:00
Bouke Haarsma
e3c8db61f3 [1.6.x] Fixed #21264 -- Incorrect RST usage in docs
Backport of 8fc63087f6 from master
2013-10-14 08:15:50 -04:00
Max Vizard
8f5ea9d19b [1.6.x] Fixed #21027 -- Updated tutorial 5 docs to link to management shell command page.
Backport of 13ddf0e002 from master
2013-10-14 08:10:51 -04:00
Claude Paroz
4a9bae0b39 [1.6.x] Imported custom user classes in tests depending on it
Without those imports, affected test files cannot be run
independently. Refs #21164.

Backport of ef22d512b5 from master.
2013-10-14 10:17:51 +02:00
Aymeric Augustin
5591fe6829 [1.6.x] Fixed #21256 -- Error in datetime_safe.datetime.combine.
Backport of d9b6fb8 from master
2013-10-13 19:11:43 +02:00
Aymeric Augustin
f0c7649b16 Fixed #21198 -- Prevented invalid use of @python_2_unicode_compatible.
Thanks jpic for the report and chmodas for working on a patch.

Reverts 2ea80b94. Refs #19362.

Conflicts:
	tests/utils_tests/test_encoding.py
2013-10-13 18:25:21 +02:00
Aymeric Augustin
ddff6522fa [1.6.x] Fixed #19560 -- Identified field in warning for naive datetime.
Thanks gcc for the report and vajrasky for the patch.

Backport of 570d9c2678d6cc564f9c70138554af8f7ce9ec49 from master.
2013-10-13 11:58:12 +02:00
Ramiro Morales
503092b09a [1.6.x] Forms docs: More emphasis in 'id' value customizability.
18ea1c473b form master.
2013-10-12 13:30:58 -03:00
Tim Graham
8f5d3d16cb [1.6.x] Fixed #15582 -- Documented how TransactionTestCase.multi_db affects fixtures.
Thanks slinkp for the suggestion.

Backport of dd839a2dfd from master
2013-10-11 20:12:52 -04:00
Cody Scott
f787869d8c [1.6.x] Minor edits to docs/topics/db/queries.txt.
Backport of 8bfc7cc64c from master
2013-10-11 15:35:48 -04:00
Cody Scott
2069dfeaef [1.6.x] Small improvements to docs/topics/db/models.txt
Backport of 695bc0d191 from master
2013-10-10 20:57:16 -04:00
Claude Paroz
8765eddf2e [1.6.x] Updated auth translation template 2013-10-09 20:21:08 +02:00
Claude Paroz
7a58fde7a6 [1.6.x] Fixed grammar/typos in auth customization docs
Backport of 1b9c72fc4f from master.
2013-10-09 16:22:36 +02:00
Russell Keith-Magee
1bf95803f3 [1.6.x] Fixed #21243 -- Corrected exception message in multiple database tests.
Thanks to vajrasky for the report and patch.

Backport of a971d19 from trunk.
2013-10-09 09:06:59 +08:00
Dan Loewenherz
af46932b57 [1.6.x] Fix grammatical errors in email documentation
Backport of 43f213e475 from master
2013-10-08 20:30:43 -04:00
Russell Keith-Magee
1ab84b6c65 [1.6.x] Fixed #21164 -- Added documentation for issue with test users.
The package renaming restores the older package names (which were also the
documented package names). This doesn't affect test discovery because the
module in question doesn't contain any tests.

Thanks to Carl for the design discussion.

Backport of ddb5385 from master.
2013-10-08 10:37:48 +08:00
Russell Keith-Magee
7f0fdffd07 [1.6.x] Refs #21197 -- Clarified upgrade check message.
Thanks to Carl and Shai for the discussion.

Backport of 8ff4303 from master.
2013-10-08 10:02:08 +08:00
Ramiro Morales
563b5c2000 [1.6.x] Re-added link to SQLite notes from DB section of install doc.
67f5dffbec from master.
2013-10-07 07:42:28 -03:00
Aymeric Augustin
b42f0665a8 [1.6.x] Fixed #21235 -- Disabled savepoints for old versions of SQLite.
Thanks Ramiro for the report.

Backport of 91547772 from master.
2013-10-07 10:49:28 +02:00
Ramiro Morales
5252885494 [1.6.x] Fixed #21165 -- Fix test for syndication feed timestamp field on Windows.
Thanks Michael Manfre for the report, Raphaël Barrois for the patch and
Claude Paroz, Aymeric Augustin for the reviews.

Refs #7936

62dfd79f8b from master.
2013-10-03 22:50:51 -03:00
Tim Graham
e2e7571035 [1.6.x] Fixed #21218 -- Typo on docs/howto/upgrade-version.txt
Thanks ryan at ryangallen.com for the report.

Backport of 36e220f923 from master
2013-10-03 20:14:00 -04:00
Kevin Christopher Henry
02c7dbd255 [1.6.x] Fixed #21122 -- Improved clean up of test temp directory on Windows
- Fixed test that didn't close the files it opened
- Caught and handled exception when temp directory cannot be removed

Backport of 978e1351a6 of master
2013-10-02 19:13:20 -04:00
Tim Graham
06b149e220 [1.6.x] Fixed #10913 -- Documented how related_name affects QuerySet filtering
Thanks neithere for the suggestion.

Backport of 75bb6ba966 from master
2013-10-02 12:13:44 -04:00
Tim Graham
9b89fcc0b0 [1.6.x] Clarified session replay attack differences with cookie backend.
Backport of 00a0d3de02 from master
2013-10-02 10:15:36 -04:00
Tim Graham
dc26f3fc9b [1.6.x] Fixed Python 2.6 compatability for 3ec368014d0d74e14a7ed98ccfd638ffe0e62863. 2013-10-02 10:01:48 -04:00
tschilling
e5b0f5b95d [1.6.x] Fixed #21129 -- Prevented admin filter params modifications from throwing an exception.
Thanks Tuttle for the report.

Backport of 5381317fe3 from master
2013-10-02 09:13:59 -04:00
Ramiro Morales
4290cc1d6e [1.6.x] Made test for issue 19552 compatible with Windows.
Take in account platform path separator. Refs #19552.

651bed0918 from master.
2013-10-02 07:35:00 -03:00
Ramiro Morales
3ec368014d [1.6.x] Made skipping of symlink-related makemessages test smarter.
os.symlink() is available starting with Windows Vista but can fail at
runtime.

0f46ec315e from master.
2013-10-02 07:33:52 -03:00
Ramiro Morales
65950805eb [1.6.x] Fixed tests breakage from last commit. 2013-10-01 21:04:28 -03:00
Ramiro Morales
d16753eecd [1.6.x] Fixed #21209 -- .po file path comments on Windows.
Literals from source files with Django template language syntax don't
have a '.py' suffix anymore.

Also, the '.\' prefix is preserved to respect GNU gettext behavior on
that platform.

Refs #16903.

4b715fc05a from master.
2013-10-01 20:42:13 -03:00
Anssi Kääriäinen
9972a101e6 [1.6.x] Fixed #21203 -- resolve_columns fields misalignment
In queries using .defer() together with .select_related() the values
and fields arguments didn't align properly for resolve_columns().

Backpatch of bf13c75c0d94d606b8a077ff73bbd0440f05b396 from master.
2013-10-01 20:47:28 +03:00
Claude Paroz
5b97b99a01 [1.6.x] Factorized requires_tz_support decorator in test utils
Thanks Aymeric Augustin for the suggestion. Refs #21165.
Backport of c1c44b2506 from master.
2013-10-01 13:28:24 +02:00
Ramiro Morales
47a65ad40e [1.6.x] Force Unix-style line-endings for some helper files in staticfiles_tests.
This fixes eight failures in the cached storage tests under Windows.

Refs #18920 and 978d4476cf.

4372718e83 from master.
2013-09-30 22:17:29 -03:00
Curtis Maloney
98773c4bb5 [1.6.x] Fixed #21154 -- Updated TemplateResponse docs to better explain context.
Thanks mrmachine for the report.

Backport of c39c9f2ad8 from master
2013-09-30 10:21:34 -04:00
Aymeric Augustin
0d74bdaf0c Fixed #21134 -- Prevented queries in broken transactions.
Backport of 728548e4 from master.

Squashed commit of the following:

commit 63ddb271a44df389b2c302e421fc17b7f0529755
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Sun Sep 29 22:51:00 2013 +0200

    Clarified interactions between atomic and exceptions.

commit 2899ec299228217c876ba3aa4024e523a41c8504
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Sun Sep 22 22:45:32 2013 +0200

    Fixed TransactionManagementError in tests.

    Previous commit introduced an additional check to prevent running
    queries in transactions that will be rolled back, which triggered a few
    failures in the tests. In practice using transaction.atomic instead of
    the low-level savepoint APIs was enough to fix the problems.

commit 4a639b059ea80aeb78f7f160a7d4b9f609b9c238
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Tue Sep 24 22:24:17 2013 +0200

    Allowed nesting constraint_checks_disabled inside atomic.

    Since MySQL handles transactions loosely, this isn't a problem.

commit 2a4ab1cb6e83391ff7e25d08479e230ca564bfef
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Sat Sep 21 18:43:12 2013 +0200

    Prevented running queries in transactions that will be rolled back.

    This avoids a counter-intuitive behavior in an edge case on databases
    with non-atomic transaction semantics.

    It prevents using savepoint_rollback() inside an atomic block without
    calling set_rollback(False) first, which is backwards-incompatible in
    tests.

    Refs #21134.

commit 8e3db393853c7ac64a445b66e57f3620a3fde7b0
Author: Aymeric Augustin <aymeric.augustin@m4x.org>
Date:   Sun Sep 22 22:14:17 2013 +0200

    Replaced manual savepoints by atomic blocks.

    This ensures the rollback flag is handled consistently in internal APIs.
2013-09-30 10:14:22 +02:00
Ramiro Morales
c4468e0619 [1.6.x] Modified test added in 3afb5916b2 so it doesn't fail on Windows.
Refs #18091.

12ca312e1b from master.
2013-09-29 22:57:04 -03:00
Michael Manfre
5d72ce061f [1.6.x] Fixed #21167 - Improved queries.tests.SubqueryTests
Improve tests to cover slicing scenarios that could be handled in unique
ways by 3rd party database backends.

Backport of b0e06c3662 from master
2013-09-29 17:37:45 +03:00
Ramiro Morales
5303afcd97 [1.6.x] Note about static files dirs paths on Windows.
Added it to the settings reference. We used to have it in comment form
in our old, bigger default project template settings.py file.

5866a49369 from master.
2013-09-28 20:35:47 -03:00
Baptiste Mispelon
c2a35d40db [1.6.x] Fixed #21186: Fixed regression when using date fields in the admin's list_filter.
Thanks to onlygoldi2201 for the report and to ramiro and apollo13
for the reviews.

Backport of 8f51ba669aba94eea684ea3f3429fd8e39e70679 from master.
2013-09-28 00:46:37 +02:00
Baptiste Mispelon
15bdc85117 [1.6.x] Fix #21185: Added tests for unescape_entities.
Also fixed a py3 incompatibility.
Thanks to brutasse for the report.

Backport of 3754f4ad410640382f9fe25073da03009cdc2ea3 from master.
2013-09-27 18:06:28 +02:00
Javed Khan
f621aba99b [1.6.x] Fixed an ImportError in django.core.cache.backends.db
It was introduced by a979a2fea5.
2013-09-27 03:21:54 -04:00
Michael Manfre
a979a2fea5 [1.6.x] Fixed #21146 - DatabaseCache converts expires to python value
DatabaseCache uses raw cursors to bypass the ORM. This prevents it from
being used by database backends that require special handling of datetime
values.

There is no easy way to test this, so no tests added.

Backport of d5606b5763 from master
2013-09-26 13:42:32 +03:00
Tim Graham
d1047c8b4c [1.6.x] Fixed #21116 -- Made usage of manage.py in docs more consistent.
Thanks daniel.quattro at gmail.com for the report.

d1c9802811 from master.
2013-09-25 21:11:17 -03:00
Anssi Kääriäinen
d7ae0bc372 [1.6.x] Fixed #21126 -- QuerySet value conversion failure
A .annotate().select_related() query resulted in misaligned rows vs
columns for compiler.resolve_columns() method.

Report & patch by Michael Manfre.

Backpatch of 83554b018ef283827c0e7459ab934d447b3419d5 from master.
2013-09-25 20:50:48 +03:00
Baptiste Mispelon
5207928151 [1.6.X] Fixed wording in unit tests documentation.
Backport of 42b9feb2e79546e1d4362c3a4f0043f3c569ace3 from master.
2013-09-25 18:31:03 +02:00
Florian Apolloner
e5dc08f2db [1.6.x] Fixed #21138 -- Increased the performance of our PBKDF2 implementation.
Thanks go to Michael Gebetsroither for pointing out this issue and help on
the patch.

Backport of 68540fe4df44492571bc610a0a043d3d02b3d320 from master.
2013-09-24 21:10:21 +02:00
Florian Apolloner
50a811a170 Revert "[1.6.x] Ensure that passwords are never long enough for a DoS."
This reverts commit 5ecc0f828ebe270cfc92a0a2bfb4268800907904.

This fix is no longer necessary, our pbkdf2 (see next commit) implementation
no longer rehashes the password every iteration.
2013-09-24 21:09:52 +02:00
Anssi Kääriäinen
1a922870ea [1.6.x] Fixed #21150 -- Improved Query.add_fields() join promotion logic
Thanks to Eivind Fonn for the report and test case.
2013-09-24 19:04:42 +03:00
Tim Graham
d30d66b907 [1.6.x] Fixed #21137 -- Corrected ULRconf include example.
Thanks marfire for the report.

Backport of 77f6b468e5 from master
2013-09-24 09:41:39 -04:00
Michał Lech
11dfb58131 [1.6.x] Marked PermissionsMixin.user_permissions help_text for translation
Backport of 53c7d66869 from master
2013-09-24 07:37:12 -04:00
Brett Koonce
db98c48884 [1.6.x] Removed extra p (topppings->toppings)
Backport of 946a2226ea from master
2013-09-23 19:25:07 -04:00
Tim Graham
34f4053409 [1.6.x] Removed implication that six is part of Python stdlib.
Backport of 45969bdeb5 from master
2013-09-23 18:30:18 -04:00
Louis Fill
a6a5c8b06d [1.6.x] Fixed #21070 -- Added a more complex database configuration example.
Thanks joejasinski for the suggestion.

Backport of e15f7f31d0 from master
2013-09-23 12:18:47 -04:00
Daley Chetwynd
5e549e7efe [1.6.x] Fixed #20830 -- Clarified that Django uses a customized version of six.
Thanks glarrain for the suggestion.

Backport of a53caf28bf from master
2013-09-23 11:07:36 -04:00
Ben Huckvale
cdb56725d4 [1.6.x] Fixed #21120 -- Added more explicit text on using validators and link to writing validators.
Thanks nicolas at niconomicon.net for the suggestion.

Backport of 98e0453f00 from master
2013-09-23 10:39:10 -04:00
Tim Garner
6e6d1b1ba8 [1.6.x] Fixed #21702 -- Added different bullet styles for nested lists.
Thanks moc at mocpa.com for the suggestion.

Backport of c81b6f7b83 from master
2013-09-23 07:40:01 -04:00
Florian Apolloner
eb32de2614 [1.6.x] Stopped a test from executing queries at the module level.
Currently module level queries are executed against the real database
(specified in NAME) instead of the test database; since it is to late
to fix this for 1.6, we at least ensures stable builds. Refs #21443.

Backport of 4fcc1e4ad8d153f41132b171c231b6d5d4086c28 from master.
2013-09-22 23:05:16 +02:00
Florian Apolloner
56201fe5a8 [1.6.x] Fixed "Address already in use" from liveserver.
Our WSGIServer rewrapped the socket errors from server_bind into
WSGIServerExceptions, which is used later on to provide nicer
error messages in runserver and used by the liveserver to see if
the port is already in use. But wrapping server_bind isn't enough since
it only binds to the socket, socket.listen (which is called from
server_activate) could also raise "Address already in use".

Instead of overriding server_activate too I chose to just catch socket
errors, which seems to make more sense anyways and should be more robust
against changes in wsgiref.

Backport of 2ca00faa913754cd5860f6e1f23c8da2529c691a from master.
2013-09-22 22:04:50 +02:00
Ramiro Morales
b2876c0c91 [1.6.x] A few doc additions for changes from d228c1192e.
ce0c5c38ea from master.
2013-09-22 13:54:54 -03:00
Ramiro Morales
aef809f90c [1.6.x] Reference Meta.index_together in DB performance guide.
9dc45efeba from master.
2013-09-22 13:54:02 -03:00
mlissner
14f76b15c4 [1.6.x] Correct very minor typo
Just changed as to has.

Backport of d8f2d940cc from master
2013-09-21 18:18:42 -04:00
Michael DiBernardo
bb8a087949 [1.6.x] Fixed #21137 -- Documented best practice for URLconfs with repeated pattern prefixes.
Backport of 222460a994 from master
2013-09-21 18:18:16 -04:00
Aymeric Augustin
e76dd4cd1a [1.6.x] Fixed #21074 -- Added tests for localized datetime fields.
Fields must render values in the current time zone.

This commit only contains tests because this ticket was just a symptom of
a regression from #18777 that was fixed separately.

Backport of 5444a9c from master.
2013-09-21 23:11:04 +02:00
Florian Apolloner
ece8d65217 [1.6.x] Ensured that BoundField.as_widget always returns properly localized fields.
This is a follow-up to #18777 which improperly converted to strings in
prepare_value and as such caused regressions like #21074.

Refs #18777, #21074

Backport of 56743cf9e337826e4c615909570bb057142a6a7b from master.
2013-09-21 22:58:18 +02:00
Curtis Maloney
e94efee946 [1.6.x] Fixed #21133 -- Clarifed documentation about strftime formatting.
Backport of 43a2ec7999 from master
2013-09-21 06:56:00 -04:00
Aymeric Augustin
0ad178c43d [1.6.x] Clarified why one must not catch database errors inside atomic.
Backport of 4db2752 from master.
2013-09-20 21:57:39 +02:00
Paul McMillan
85ba68cc14 [1.6.x] Increased default PBKDF2 iterations
Increases the default PBKDF2 iterations, since computers have gotten
faster since 2011. In the future, we plan to increment by 10% per
major version.

Backport of a075e2ad0d from master
2013-09-19 15:34:59 -04:00
Markus Amalthea Magnuson
9888bb28ee [1.6.x] Added missing "in" in sentence.
Backport of 2c5c422d34 from master
2013-09-19 13:29:48 -04:00
Tim Graham
538fdd2ae4 [1.6.x] Added __pycache__ to gitignore
Backport of 55b9bff07f from master
2013-09-19 06:37:53 -04:00
Russell Keith-Magee
886e876c72 [1.6.x] Fixed #21121: Added archive of security issues.
Backport of 9d3e60aa3e, 8e134c27c9, 8b3bae9466, c65ae7c969, bbabc5325c,
and a2e25e8a83 from master.
2013-09-19 15:02:52 +08:00
Tim Graham
091ae7f172 Removed accidentally added pyc file.
Thanks Simon Charette for the report.
2013-09-18 20:27:07 -04:00
Tim Graham
778d4da9cc [1.6.x] Fixed #21098 -- Applied sensitive_post_parameters to MultiValueDict
Thanks simonpercivall for the report and bmispelon for the review.

Backport of 2daada800f from master
2013-09-18 09:56:01 -04:00
Tim Graham
dbad65ded7 [1.6.x] Fixed bad backport in last commit; refs #21118 2013-09-18 09:52:29 -04:00
Tim Graham
14e139ecdf [1.6.x] Fixed #21118 -- Isolated a test that uses the database.
Thanks rmboggs for the report.

Backport of 4f40b97d97 from master
2013-09-18 09:43:10 -04:00
Tim Graham
275497c570 [1.6.x] Fixed #15625 -- Made message in MultiValueDictKeyError less verbose.
Thanks margieroginski for the suggestion.

Backport of 893198509e from master
2013-09-18 06:49:59 -04:00
Florian Apolloner
325b03ea84 [1.6.x] Final attempt to solve sporadic test failures.
tearDownClass is not called if setUpClass throws an exception, in our case
this means that LiveServerTestCase leaks LiveServerThread sockets if the
test happens to be skipped later on, and AdminSeleniumWebDriverTestCase
doesn't close it's already open browser window. To prevent this leakage
we catch errors where needed and manually call _tearDownClassInternal.
_tearDownClassInternal should be written as defensively as possible since
it is not allowed to make any assumptions on how far setUpClass got.

This patch should fix the sporadic "Address already in use"-errors on jenkins
and also the "This code isn't under transaction management"-error for sqlite
(also just on jenkins).

After discussion with koniiiik, jezdez, kmtracey, tos9, lifeless, nedbat and
voidspace it was decided that this is the safest approach (thanks to everyone
for their comments and help). Manually calling tearDownClass was shut down
cause we don't know how our users override our classes.

This is a private and very specialized API on purpose and should not be used
without a strong reason!

This patch partially reverts the earlier attempts to fix those issues,
namely:
	2fa0dd73b18f55d0fdd1c1d54b1d18031bfcf1ed and
	3c5775d36f7e431d9691829a78580873111cb714

Final note: If this patch breaks in a later version of Django, please be
very careful on how you fix it, you might not see test failures locally.
That said, this patch hopefully doesn't produce even more failures.

Backport of 73a610d2a81bc3bf2d3834786b2458bc85953ed0 from master.
2013-09-17 18:36:32 +02:00
Anssi Kääriäinen
5937f291c1 [1.6.x] Fixed #21109 -- made db cursor error wrapping faster
Backpatch of 94001421321bd8808c4027a72aa32a1eef005764 from master.
2013-09-17 12:31:13 +03:00
Ramiro Morales
c0625a74ce [1.6.x] Reworded a paragraph in the logging docs.
9d12f68a53 from master.
2013-09-16 17:52:13 -03:00
Tim Graham
e96bcdd64f [1.6.x] Cleaned up 1.5.4/1.4.8 release notes
Backport of 8d29005524 from master
2013-09-15 14:22:24 -04:00
James Bennett
623c4916df [1.6.x] Add release notes and bump version number for security release. 2013-09-15 00:36:03 -06:00
Russell Keith-Magee
5ecc0f828e [1.6.x] Ensure that passwords are never long enough for a DoS.
* Limit the password length to 4096 bytes
  * Password hashers will raise a ValueError
  * django.contrib.auth forms will fail validation
 * Document in release notes that this is a backwards incompatible change

Thanks to Josh Wright for the report, and Donald Stufft for the patch.

This is a security fix; disclosure to follow shortly.

Backport of aae5a96d5754ad34e48b7f673ef2411a3bbc1015 from master.
2013-09-15 13:46:16 +08:00
Anssi Kääriäinen
4c4954a3c1 [1.6.x] Added tests for double-pickling a QuerySet
Refs #21102.

Backpatch of 74b91b3888383fca28dea00e0e1ffb5aecec7c0f
2013-09-14 10:36:48 +03:00
Goetz
097fb98f81 [1.6.x] Fixed #21101 -- Updated urlize documentation to mention email addresses
Backport of 39b49fd339 from master
2013-09-13 12:42:40 -04:00
Tim Graham
7a2adec4d0 [1.6.x] Fixed #21100 -- Noted that Create/UpdateViews.fields is new in 1.6
Thanks AndrewIngram for the suggestion.

Backport of ec89e1725a from master
2013-09-13 09:35:22 -04:00
Tim Graham
6e17534c89 [1.6.x] Fixed #21094 -- Updated reuseable apps tutorial to use pip for installation.
Thanks ylb415 at gmail.com for the suggestion.

Backport of e4aab1bb8d from master
2013-09-13 09:30:12 -04:00
Kevin Christopher Henry
c91ffd5f23 [1.6.x] Documentation -- added instructions on working with pull requests
Since non-core contributors are asked to review patches, instructions
on working with pull requests were added to the Working with Git and
GitHub page (based on the existing instructions in the core
committers page).

Backport of 990ce9aab9 from master
2013-09-13 08:27:23 -04:00
Matt Austin
a929adfd3b [1.6.x] Fixed #21095 -- Documented new requirement for dates lookups.
Day, month, and week_day lookups now require time zone definitions in the database.

Backport of 9451d8d from master.
2013-09-13 10:20:13 +02:00
Ramiro Morales
66e6e2d146 [1.6.x] Fixed a couple of typos in GeoDjango docs.
8b366a50f4 from master.
2013-09-12 19:45:27 -03:00
Phaneendra Chiruvella
e8bb41d05c [1.6.x] Minor typo fix in django.contrib.auth.models.User docs
Backport of bd72c2acb6 from master
2013-09-11 19:44:35 -04:00
Tim Graham
b05639dcac [1.6.x] Fixed #20887 -- Added a warning to GzipMiddleware in light of BREACH.
Thanks EvilDMP for the report and Russell Keith-Magee
for the draft text.

Backport of da843e7dba from master
2013-09-11 08:18:48 -04:00
Kevin Christopher Henry
4f0ea1aca4 [1.6.x] Documentation -- Improved description of cache arguments
- Fixed some grammar and formatting mistakes
- Added the type and default for CULL_FREQUENCY
- Made the note on culling the entire cache more precise. (It's actually
  slower on the filesystem backend.)

Backport of 5eca021d48 from master
2013-09-11 07:43:24 -04:00
James Bennett
ed9b7b6295 [1.6.x] Bump version number for 1.6 beta 3 security release. 2013-09-10 20:32:14 -05:00
Tim Graham
2f2731e67e [1.6.x] Added 1.4.7/1.5.3 release notes
Backport of baec6a26dd from master
2013-09-10 21:08:27 -04:00
Tim Graham
536cc64240 [1.6.x] Prevented arbitrary file inclusion with {% ssi %} tag and relative paths.
Thanks Rainer Koirikivi for the report and draft patch.

This is a security fix; disclosure to follow shortly.

Backport of 7fe5b656c9 from master
2013-09-10 21:03:51 -04:00
Tarjei Husøy
ef3604a085 [1.6.x] Fixed broken sphinx reference to staticfiles.
Backport of 751dc0a36b from master
2013-09-10 16:31:51 -04:00
Aymeric Augustin
f9f792eb04 [1.6.x] Took advantage of django.utils.six.moves.urllib.*.
Backport of 6a6428a36 from master.
2013-09-10 21:29:31 +02:00
oz123
960f5bc759 [1.6.x] Fixed #21075 - Improved doc for calling call_command with arguments.
Backport of fca4c4826e from master
2013-09-10 09:18:14 -04:00
Tim Graham
01ad508514 [1.6.x] Fixed spelling; refs #16895.
Thanks Panagiotis Issaris for the report.

Backport of fb51c9a0f2 from master
2013-09-09 11:31:25 -04:00
e0ne
276e053803 [1.6.x] Fixed #16895 -- Warned about cost of QuerySet ordering
Thanks outofculture at gmail.com for the suggestion.

Backport of cbf08c6b0c from master
2013-09-09 09:49:15 -04:00
Садовский Николай
e4274e3da1 [1.6.x] Fixed #20707 -- Added explicit quota assignment to Oracle test user
To enable testing on Oracle 12c
2013-09-09 14:02:21 +03:00
Aymeric Augustin
b085e7c303 [1.6.x] Further hardening. Refs #18766.
Backport of c687bf0 from master.
2013-09-08 20:43:33 +02:00
Aymeric Augustin
0035a0ce2e [1.6.x] Hardened the test introduced in ded11aa6. Refs #18766.
Inputs acceptable to time.mktime are platform-dependent.

Backport of 1a1e1478 from master.
2013-09-08 19:41:34 +02:00
Aymeric Augustin
7c31e195db [1.6.x] Fixed #18766 -- Pointed to pytz when LocalTimezone fails.
Thanks void for the report.

Backport of ded11aa6 from master.
2013-09-08 09:17:03 +02:00
Tim Graham
c03848b540 [1.6.x] Fixed #21068 -- Added some docs for DiscoverRunner
Thanks jcd.

Backport of e4b012feeb from master
2013-09-07 16:11:03 -04:00
Aymeric Augustin
01edcf70f2 Fixed #20409 -- Clarified how unique_for_date works when USE_TZ is set. 2013-09-07 14:09:52 -05:00
Tim Graham
be9930d7be [1.6.x] Fixed deprecation warning on Python 3
Backport of b7451b72 from master.
2013-09-07 13:15:13 -05:00
Aymeric Augustin
63b95ca452 [1.6.x] Fixed 9244447c -- incomplete backport.
The test client had been refactored in the mean time. This commit
de-factors the fix. Refs #20530.
2013-09-07 13:15:13 -05:00
Tim Graham
7b8037f3aa [1.6.x] Fixed #20005 -- Documented that Oracle databases need execute permission on SYS.DBMS_LOB.
Thanks jafula for the suggestion.

Backport of a86ecc80a2 from master
2013-09-07 14:01:05 -04:00
Tim Graham
17b67e17a3 [1.6.x] Fixed #20938 -- Added cached sessions note to deployment checklist.
Thanks mjtamlyn for the suggestion.

Backport of 4e784f337c from master
2013-09-07 13:08:45 -04:00
Aymeric Augustin
7fcd6aa669 [1.6.x] Fixed #20530 -- Properly decoded non-ASCII query strings on Python 3.
Thanks mitsuhiko for the report.

Backport of 65b6eff3 and adaptation of 8aaca65 from master.
2013-09-07 12:06:38 -05:00
Aymeric Augustin
9244447cc4 [1.6.x] Fixed an encoding issue in the test client.
Refs #20530.

Backport of 7bb62793 and 476b0764 from master.

Conflicts:
	django/test/client.py
2013-09-07 12:06:19 -05:00
Keith Edmiston
a357c854c9 [1.6.x] Fixed #16992 -- Added InnoDB warning regarding reuse of AUTO_INCREMENT values.
Thanks kent at nsc.liu.se for the report.

Backport of c54fa1a7bc from master
2013-09-07 12:16:43 -04:00
Aymeric Augustin
fac5735a3d [1.6.x] Fixed #20557 -- Properly decoded non-ASCII cookies on Python 3.
Thanks mitsuhiko for the report.

Non-ASCII values are supported. Non-ASCII keys still aren't, because the
current parser mangles them. That's another bug.

Simplified backport of 8aaca651 and f5add47 from master.
2013-09-07 10:45:24 -05:00
Aymeric Augustin
f855058c35 [1.6.x] Fixed #11811 -- Data-loss bug in queryset.update.
It's now forbidden to call queryset.update(field=instance) when instance
hasn't been saved to the database ie. instance.pk is None.

Conflicts:
	tests/queries/tests.py

Backport of b4cd8169 from master.
2013-09-06 21:59:28 -05:00
Russell Keith-Magee
2a2ac5c140 Merge pull request #1566 from adamsc64/ticket_11857
Fixed #11857 -- Added missing 'closed' property on TemporaryFile class.

Backport of 926bc42 from trunk.
2013-09-06 19:44:25 -05:00
Tim Graham
6ba01f64c1 [1.6.x] Fixed Python 3 syntax error introduced in [c72392da]
Backport of 498014ccd5 from master
2013-09-06 20:08:56 -04:00
Russell Keith-Magee
3df9647ad9 [1.6.x] Merge pull request #1582 from rca/12756-missing-yaml-module-serializer-error-message
Fixed #12756: Improved error message when yaml module is missing.

Backport of 4f5faa1916e7c8cb72cc9ebf1a1fd964ba6e707b from master.
2013-09-06 19:01:24 -05:00
Russell Keith-Magee
99952bab30 [1.6.x] Merge pull request #1580 from ianawilson/ticket_16502
Fixed #16502 -- Fixed a TemplateDoesNotExist error that should be an ImproperlyConfigured.

Assistance on the patch from #jambronrose.

Backport of 9b2dc12b8332389d1bfb9e83123a088a084a6a47 from master.
2013-09-06 17:39:16 -05:00
Russell Keith-Magee
b917458f47 Merge pull request #1579 from ianawilson/ticket_21058
[1.6.x] Fixed #21058 -- Fixed debug view blowing up when no template is provided to the template rendering functions.

Assistance on this commit from @jambonrose.

Backport of 122020fdb93980df850ae02f61d97da27e2cb515 from master.
2013-09-06 17:11:07 -05:00
Tim Graham
2ab2d0fb25 [1.6.x] Fixed a link in topics/testing/overview.txt
Backport of 0c295a7718 from master
2013-09-06 17:41:43 -04:00
Max Burstein
92e89452f1 [1.6.x] Fixed #21049 -- Fixed autoreload for Python 3
Changed th system module values check to return a list.
In Python 3 it returns a dict_view which could occassionally produce
a runtime error of "dictionary changed size during iteration".

Backport of 559cb826b8 from master
2013-09-06 17:32:08 -04:00
Keith Edmiston
2c73ba88f2 [1.6.x] Fixed #19295 -- Documented that CachedStaticFilesStorage isn't compatible with runserver --insecure.
Backport of 028db97503 from master
2013-09-06 17:30:59 -04:00
Tim Graham
da44a8bdc2 [1.6.x] Fixed #20646 -- Clarified the use of AbstractBaseUser.REQUIRED_FIELDS
Thanks craigbruce.

Backport of db3de52807 from master
2013-09-06 16:06:46 -04:00
Tim Graham
544382dd85 [1.6.x] Fixed instructions for running a subset of tests.
Backport of cd4068f359 from master
2013-09-06 14:31:43 -04:00
Eric Boersma
180b9955cc [1.6.x] Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.
The documentation and comments now all use 'an' to
refer to the word SQL and not 'a'.

Backport of 4d13cc56de from master
2013-09-05 20:16:14 -04:00
micahhausler
9f69ae7847 [1.6.x] Fixed #21047 -- Added CLA mesage on the new contributor advice doc
Backport of 93dd31cadf from master
2013-09-05 17:54:56 -04:00
Tim Graham
1dd061ad77 [1.6.x] Fixed #21044 -- Documented django.core.urlresolvers.Resolver404
Thanks Keryn Knight for the suggestion.

Backport of eacf060e01 from master
2013-09-05 08:45:58 -04:00
Tim Graham
622d5c7650 [1.6.x] Fixed #20900 -- Documented RemoteUserBackend.authenticate
Backport of 7b62b80693 from master
2013-09-05 06:32:50 -04:00
Tim Graham
77cf0d6519 [1.6.x] Fixed #21041 -- Removed a duplicate form in tests.
Thanks tuxcanfly.

Backport of bab039d74c from master
2013-09-05 06:32:26 -04:00
Aymeric Augustin
a8624b22a7 [1.6.x] Tested exc_type instead of exc_value in __exit__.
exc_value might be None even though there's an exception, at least on
Python 2.6. Thanks Thomas Chaumeny for the report.

Fixed #21034.
2013-09-04 16:18:47 -05:00
Aymeric Augustin
7c1efc2fa6 Updated six to version 1.4.1. 2013-09-04 15:23:24 -05:00
Tim Graham
cda4fc8225 [1.6.x] Fixed #20958 -- Documented that GenericForeignKey fields can't be accessed in forms.
Thanks marky1991.

Backport of 533d1ab334 from master
2013-09-04 13:19:32 -04:00
Paul C. Anagnostopoulos
fe0eb2f995 [1.6.x] Clarified docs for some tags and filters
Backport of 1ccdc08189 from master
2013-09-04 13:04:51 -04:00
Carl Meyer
4420de89b6 [1.6.x] Fixed #21026 -- Corrected help for manage.py test command.
Backport of 8f7f8bf6884ada8622bc3696c7465c904164d314 from master.
2013-09-03 09:51:17 -06:00
Loic Bistuer
a62b640f7d [1.6.x] Fixed #20973 -- Document serving static files without django.contrib.staticfiles
Backport of 7b04038a7f from master
2013-09-03 09:01:43 -04:00
Aymeric Augustin
2a14c08e71 Used six.moves.zip_longest, new in six 1.4.0. 2013-09-03 07:34:45 -05:00
Aymeric Augustin
115318051c [1.6.x] Replaced "not PY3" by "PY2", new in six 1.4.0.
Conflicts:
	django/db/backends/oracle/base.py
	django/db/backends/sqlite3/base.py
	django/db/models/base.py

Backport of 365c3e8b from master.
2013-09-03 07:34:45 -05:00
Aymeric Augustin
50012577f3 [1.6.x] Updated the bundled version of six to 1.4.0.
Backport of 42920970 from master.
2013-09-03 07:34:44 -05:00
Claude Paroz
0514fbb2f3 [1.6.x] Fixed #21003 -- Ensured geometry widget return value has SRID
Thanks Mathieu Leplatre for the report and initial patch.
Backport of dd656073ad from master.
2013-09-03 13:55:20 +02:00
Claude Paroz
bd0319a261 [1.6.x] Isolated map creation JS code
Backport of 3550b27a8 from master.
2013-09-03 13:54:50 +02:00
Tim Graham
c0fb6bdde3 [1.6.x] Fixed #21002 -- Documented JSON session serialization requires string keys
Thanks jeroen.pulles at redslider.net for the report.

Backport of 3baf1d1042 from master
2013-09-03 07:49:59 -04:00
Claude Paroz
b53ce2f31c [1.6.x] Prevented rendering attrs to be squashed in OSMWidget
Backport of b6889c68d7 from master.
2013-09-03 10:04:50 +02:00
Claude Paroz
aa1c175687 [1.6.x] Fixed syntax error in OSMWidget
Backport of 6ecbac21a from master.
2013-09-03 09:08:25 +02:00
Claude Paroz
0c57868908 [1.6.x] Fixed gis test to run on non gis-enabled settings
Refs #20998.
Backport of 973502c0 from master.
2013-09-02 14:31:20 +02:00
Claude Paroz
4e3794dd1f [1.6.x] Fixed #20998 -- Allow custom (de)serialization for GIS widgets
Thanks Mathieu Leplatre for the report and the initial patch.
Backport of 102f26c92 from master.
2013-09-02 13:34:26 +02:00
Loic Bistuer
64383e8349 [1.6.x] Made the doc about translating string literals in templates more prominent.
Backport of 9885f07757 from master
2013-08-31 08:00:33 -04:00
Claude Paroz
68ae9f39b7 [1.6.x] Fixed copy/paste error in measurement docs
Backport of e87997dd33 frmo master.
2013-08-31 10:33:46 +02:00
Tim Graham
0089a9a854 [1.6.x] Fixed typo in docs/ref/models/options.txt
Backport of a89c856a7a from master
2013-08-30 21:07:04 -04:00
Carl Meyer
21a3efcf48 [1.6.x] Fixed #20999 - Allow overriding formfield class with choices, without subclass restrictions.
Refs #18162. Thanks claudep and mjtamlyn for review.

Backport of 7211741fc5d50425 from master.
2013-08-30 17:45:14 -06:00
Claude Paroz
1d874ce0f9 [1.6.x] Set 'bidi' Urdu property to True
Refs #20454.
Backport of e4a67fd90 from master.
2013-08-30 12:04:17 +02:00
Anssi Kääriäinen
76e38a2177 [1.6.x] Fixed #20988 -- Added model meta option select_on_save
The option can be used to force pre 1.6 style SELECT on save behaviour.
This is needed in case the database returns zero updated rows even if
there is a matching row in the DB. One such case is PostgreSQL update
trigger that returns NULL.

Reviewed by Tim Graham.

Refs #16649

Backport of e973ee6a9879969b8ae05bb7ff681172cc5386a5 from master

Conflicts:
	django/db/models/options.py
	tests/basic/tests.py
2013-08-30 09:47:34 +03:00
Anssi Kääriäinen
cd10e998b6 [1.6.x] Removed stale add_q() comment
Backport of 13be3bfef1 from master
2013-08-30 09:46:16 +03:00
Jorge C. Leitão
60df34d477 [1.6.x] Added links to file docs.
Backport of d72f83c410 from master
2013-08-29 12:49:27 -04:00
Tim Graham
10d15f79e5 [1.6.x] Fixed #14786 -- Fixed get_db_prep_lookup calling get_prep_value twice if prepared is False.
Thanks homm for the report and Aramgutang and lrekucki for work on
the patch.

Backport of f19a3669b8 from master
2013-08-29 12:14:40 -04:00
Tim Graham
ef1259342b [1.6.x] Fixed #16433 -- Fixed a help_text/read only field interaction that caused an admin crash.
Thanks chris at cogdon.org for the report and admackin for the patch.

Backport of af953c45cc from master
2013-08-29 09:45:02 -04:00
Claude Paroz
58157be5ad [1.6.x] Fixed #20984 -- Stopped decoding bytes in sqlite3 adapter on Python 3
Thanks lvella at gmail.com for the report.
Backport of 169637649 from master.
2013-08-29 08:43:35 +02:00
Phaneendra Chiruvella
68eca2b36f [1.6.x] Minor spelling correction in ModelForms docs
Backport of 2fbf949760 from master
2013-08-28 07:12:38 -04:00
Krzysztof Jurewicz
544a190ebf [1.6.x] Fixed #20981 -- Noted the default value of disable_existing_loggers.
Backport of 095643e691 from master
2013-08-27 10:27:44 -04:00
Jan Böcker
c4e2e4f630 [1.6.x] Fixed typo in docs/topics/conditional-view-processing.txt
Backport of 5fd2c979cb from master
2013-08-27 09:22:31 -04:00
Matt Robenolt
28026c3e26 [1.6.x] Updated instructions for running contrib tests.
Backport of 08e7a64369 from master
2013-08-27 08:24:31 -04:00
Claude Paroz
2c08d474a8 [1.6.x] Fixed #20961 -- Fixed HttpResponse default empty content
Thanks epandurski at gmail.com for the report.
Backport of f4e980456 from master.
2013-08-24 18:10:50 +02:00
Ramiro Morales
2a166623a6 [1.6.x] Typos introduced in 57c82f909b. 2013-08-22 22:33:59 -03:00
Tim Graham
5f061986b9 [1.6.x] Fixed #20922 -- Allowed customizing the serializer used by contrib.sessions
Added settings.SESSION_SERIALIZER which is the import path of a serializer
to use for sessions.

Thanks apollo13, carljm, shaib, akaariai, charettes, and dstufft for reviews.

Backport of b0ce6fe656 from master
2013-08-22 17:55:01 -04:00
Kevin Christopher Henry
bf9382fb02 [1.6.x] Documentation -- Clarified use of 'view' in test client introduction.
Backport of 2e926b041c from master
2013-08-22 09:39:14 -04:00
Marc Tamlyn
8d02c378ab [1.6.x] Fixed #20944 -- Removed inaccurate statement about View.dispatch().
Backport of bac4d03ce6 from master
2013-08-22 09:21:28 -04:00
Ramiro Morales
26a4c83598 [1.6.x] Made description of LANGUAGE_CODE setting more clear.
297f5af222bde02a7cdd005da2e4b00ec81801de from master.
2013-08-22 08:29:59 -03:00
Claude Paroz
ff92a6eb5b [1.6.x] Moved translator comment just above the target string
Backport of 8cd874298 from master.
2013-08-22 09:54:35 +02:00
Anssi Kääriäinen
161e26c2ec [1.6.x] Fixed #20955 -- select_related regression
In cases where the same connection (from model A to model B along the
same field) was needed multiple times in a select_related query, the
join setup code mistakenly reused an existing join.

Backpatch of 8d65b6082c8bf5df25608d8733470879a8a61d7d.

Conflicts:

	django/db/models/sql/compiler.py
	tests/queries/tests.py
2013-08-22 10:59:59 +03:00
Kevin Christopher Henry
69a4594cb7 [1.6.x] Documentation -- Corrected error about Model.full_clean()
Although the ModelForm validation code was changed to call
Model.full_clean(), the documentation still said otherwise. The
offending phrase was removed.

Backport of bb011cf809 from master
2013-08-21 17:46:18 -04:00
Tim Graham
28b1317fd8 [1.6.x] Fixed #20949 -- Typo #2 in docstring
Backport of 0073f1d94f from master
2013-08-21 10:50:27 -04:00
Tim Graham
b0821e6d3a [1.6.x] Fixed docstring typo, thanks minddust.
Backport of d3ed15b79d from master
2013-08-21 09:02:19 -04:00
Kevin Christopher Henry
e7d4d41a30 [1.6.x] Documentation - Noted that OneToOneField doesn't respect unique.
Added OneToOneField to the list of model fields for which the unique
argument isn't valid. (OneToOneFields are inherently unique, and if
the user supplies a value for unique it is ignored / overwritten.)
2013-08-20 21:20:55 -07:00
Florian Apolloner
12d364a9b0 [1.6.x] Fixed #20933 -- Allowed loaddata to load fixtures from relative paths.
Backport of 6e846f7627ecf0dc15053624a23bfbf47535972d from master.
2013-08-20 21:28:14 +02:00
Anssi Kääriäinen
b189169ed0 [1.6.x] Fixed invalid testing fixture
Backport of 86f4459f9e from master
2013-08-20 17:49:00 +03:00
Anssi Kääriäinen
2b1101a4a6 [1.6.x] Fixed #20820 -- Model inheritance + m2m fixture loading regression
Tests by Tim Graham, report from jeroen.pulles@redslider.net.

Backport of 1ed77e7782 from master
2013-08-20 17:15:52 +03:00
Simon Charette
3ae585b449 [1.6.x] Fixed a test failure introduced in f0bc2865ff.
`classobj` objects cannot be weakly referenced on Python 2.6
2013-08-20 04:08:41 -04:00
Simon Charette
f0bc2865ff Fixed #20943 -- Weakly reference senders when caching their associated receivers
Backport of e55ca60903 from master.
2013-08-20 02:12:50 -04:00
Simon Charette
e7a6eaf5fe [1.6.x] Correctly format missing Pillow/PIL exceptions messages. refs #19934
Backport of b9590a6935 from master.
2013-08-19 18:51:22 -04:00
Harm Geerts
a6ac4f90d0 [1.6.x] Fixed #20829 -- Skip postgis metadata tables with introspection
Backport of 24088618 from master.
2013-08-16 21:21:41 +02:00
Claude Paroz
1b48de06c3 [1.6.x] Updated translation templates 2013-08-16 15:13:31 +02:00
Tim Graham
c769c26601 [1.6.x] Revert "Fixed #18491 -- deleting a proxy doesn't show warning about cascade deletes"
This reverts commit 2b48fcc607010065c0f8107baf669dd41b164f3c.

It introduced a regression (#20777) which we can't easily fix in 1.6.
2013-08-16 07:59:16 -04:00
Alasdair Nicol
919934602f [1.6.x] Fixed #20895 -- Made check management command warn if a BooleanField does not have a default value
Thanks to Collin Anderson for the suggestion and Tim Graham for
reviewing the patch.

Backport of 22c6497f99 from master
2013-08-15 20:33:02 -04:00
Tim Graham
7825fb8788 [1.6.x] Fixed #20891 -- Removed part of the tutorial that requires pytz
Thanks AtomicSpark for the report.

Backport of 55339a7669 from master
2013-08-15 15:31:57 -04:00
Tim Graham
ccff25b143 [1.6.x] Fixed #17778 -- Prevented class attributes on context from resolving as template variables.
Thanks KyleMac for the report, regebro for the patch, and Aymeric for the test.

Backport of 71b5617c24 from master.
2013-08-15 10:22:56 -04:00
James Bennett
d2419bb2b8 [1.6.x] Added release date to 1.5 release notes.
Forwardport of 61283a8208 from 1.5.x
2013-08-15 07:41:53 -04:00
Alasdair Nicol
52741004f6 [1.6.x] Updated docs following deprecation of django.views.defaults.shortcut
Follows 3f2befc

Backport of 354009d67e from master
2013-08-15 07:07:15 -04:00
Tim Graham
8bd5251fd5 [1.6.x] Added some doc links for django.contrib.messages
Backport of b6178fa24b from master
2013-08-14 12:58:19 -04:00
Florian Apolloner
b720ece065 [1.6.x] Removed unneeded conditional_escapes from the testsuite.
Backport of 4e50e4065489f06d72eed8ce2d9ae98639be5a93 from master.
2013-08-13 22:24:14 +02:00
Loic Bistuer
39db994790 [1.6.x] Fixed overflow for the "Recent Actions" widget on the admin index.
Previously the CSS targeted "li.changelink" and therefore didn't
work for the "add" and "delete" actions.

Refs #14868.

Backport of 33fc083b0d from master
2013-08-13 13:26:37 -04:00
Tim Graham
529afa7138 Added 1.4.6/1.5.2 release notes. 2013-08-13 11:17:07 -05:00
Jacob Kaplan-Moss
57dc238d0e Bumped version numbers for 1.6b2. 2013-08-13 11:12:07 -05:00
Jacob Kaplan-Moss
bfbae15c66 Apply autoescaping to AdminURLFieldWidget.
This is a security fix; disclosure to follow shortly.
2013-08-13 11:06:00 -05:00
Jacob Kaplan-Moss
79594b40c0 Fixed is_safe_url() to reject URLs that use a scheme other than HTTP/S.
This is a security fix; disclosure to follow shortly.
2013-08-13 11:05:41 -05:00
Tim Graham
4f470f5186 [1.6.x] Added missing release notes for older versions of Django
Backport of 3f6cc33cff from master
2013-08-12 14:07:58 -04:00
Tim Graham
43f12f368b [1.6.x] Fixed #20890 -- Added missing import in class-based view docs.
Thanks André Augusto.

Backport of ab680725bf from master
2013-08-10 18:08:27 -04:00
Tim Graham
2cd1439c06 [1.6.x] Fixed #20868 -- Added an email to django-announce as a security step.
Thanks garrison for the report.

Backport of 5737c57d95 from master
2013-08-09 16:02:54 -04:00
Tim Graham
7c5d43eea0 [1.6.x] Added an anchor for django.forms.Form.clean in docs
Backport of 8442268869 from master
2013-08-08 14:14:14 -04:00
Jaime Irurzun
7836bd502c [1.6.x] Clarifed meaning of models.User.is_authenticated()
Backport of f96fe3cd1e from master
2013-08-08 10:27:34 -04:00
Daniele Procida
9cc7407f2c [1.6.x] Added more on @cached_property, refs #20870
Backport of 7e6af9d40c from master
2013-08-08 09:47:24 -04:00
Daniele Procida
25ce1e0e0a [1.6.x] Fixed #20870 -- Documented django.utils.functional.cached_property
Backport of 7a2296eb5b from master
2013-08-08 05:36:52 -04:00
Christopher Medrela
6264e39c34 [1.6.x] Added note to GenericIPAddressField documentation
refs #20484

Backport of fb26c4996a from master
2013-08-08 05:17:54 -04:00
Collin Anderson
e3e0cf8a0f [1.6.x] Fixed #20865 -- Fixed raw_id_fields to work with callable limit_choices_to.
Backport of d53e574676 from master
2013-08-06 13:44:31 -04:00
Leandro Regueiro
4c90081b5b [1.6.x] Added section labels in cache docs
Backport of 709cd2c4b7 from master
2013-08-06 11:56:31 -04:00
Alex Cucu
80b95a2b1f [1.6.x] Fixed #19918 -- Modified select_for_update to run on the write database.
Backport of 1c64a0f29e from master
2013-08-06 10:58:32 -04:00
Anssi Kääriäinen
363b81c59c [1.6.x] Fixed ordering related test failure
Also PEP8 + python_2_unicode_compatible cleanup done.

Backport of 263b873599 from master
2013-08-06 10:34:42 +03:00
Tim Heap
891cdf120a [1.6.x] Fixed #20850 -- Added MultiWidget.needs_multipart_form
Backport of 75c87e2d38 from master
2013-08-05 10:13:48 -04:00
Jimmy Song
ea7bef318f [1.6.x] Fixed #20859 - Clarified Model.clean() example.
Backport of 94d7fed775 from master
2013-08-05 09:06:36 -04:00
Tim Graham
06f484dcf9 [1.6.x] Fixed #20862 -- Updated startproject MIDDLEWARE_CLASSES in docs.
Thanks Keryn Knight.

Backport of 26c4bd38ac from master
2013-08-05 08:16:56 -04:00
Julien Phalip
7cc91eae7c [1.6.x] Fixed a small formatting issue.
Backport 0b071ba7df7394b9 of from master.
2013-08-04 17:33:00 -07:00
Julien Phalip
59bf42f79e [1.6.x] Added a note to the 1.6 release about the new --keep-pot option for makemessages.
Refs #17008.
Backport of 28d3b33c04cc2 from master.
2013-08-04 17:20:22 -07:00
Tim Graham
7a5f799193 [1.6.x] Fixed #20860 -- Removed references to defunct chicagocrime.org
Backport of 1593a86494 from master
2013-08-04 14:46:41 -04:00
Daniele Procida
74205c4a3c [1.6.x] Fixed #20842 and #20845 - Added a note on order_by() and improved prefetch_related() docs.
Backport of e8183a8193 from master
2013-08-04 12:35:31 -04:00
Justin Michalicek
77293f9354 [1.6.x] Fixed #20855 -- Added documentation of current_app and extra_context params to django.contrib.auth views
refs #5298 and refs #8342

Backport of 61ecb5f48a from master
2013-08-04 08:05:36 -04:00
Tim Graham
90bdb42702 [1.6.x] Fixed backport error in previous commit; refs #15961 2013-08-04 07:30:30 -04:00
Loic Bistuer
9053c6da5f [1.6.x] Moved get_search_results from BaseModelAdmin to ModelAdmin.
Refs #15961.

Backport of 470a9bb22d from master.
2013-08-04 07:19:13 -04:00
Tim Graham
01a9604274 [1.6.x] Fixed #20858 -- Removed erroneous import in tutorial 2.
Thanks AtomicSpark.

Backport of b278f7478d from master
2013-08-04 05:59:24 -04:00
Aymeric Augustin
2eac989985 [1.6.x] Fixed #20822 -- Set content type of default error pages to 'text/html'.
Thanks Jimmy Song for the patch.

Backport of 7843775 from master.
2013-08-04 11:04:58 +02:00
Alasdair Nicol
ccef8b2aa2 [1.6.x] Added missing request argument to example in URL dispatcher docs
Backport of a0c58113b9 from master
2013-08-03 19:36:15 -04:00
Tim Graham
97254154ab [1.6.x] Fixed #18923 -- Corrected usage of sensitive_post_parameters in contrib.auth
Thanks Collin Anderson for the report.

Backport of 425d076d0c from master
2013-08-02 14:46:51 -04:00
Petr Dlouhý
4e7745cc1c [1.6.x] Fixed LogEntry.get_admin_url() for non-existent models.
Regression introduced by [369b6fa]; refs #18169.

Backport of 1b47508ac8 from master
2013-08-02 12:51:46 -04:00
Loic Bistuer
4f8fb19994 [1.6.x] Fixed #18681 -- GenericInlineModelAdmin.get_formset() no longer bypasses get_fieldsets().
Refs 23e1b59 which already fixed this issue for ModelAdmin and InlineModelAdmin.

Backport of a0ed2f9260 from master
2013-08-02 10:45:58 -04:00
Harm Geerts
b0bde21884 [1.6.x] Fixed #20838 -- Fixed Geodjango spatialrefsys test failure with postgis-2.0.3
Backport of fd0d486467 from master
2013-08-02 10:45:27 -04:00
Claude Paroz
f942554cf3 [1.6.x] Tweaked proj string regex in gis tests
Backport of 4367c637d6 from master
2013-08-02 10:45:12 -04:00
Dominic Rodger
e710f6dc56 [1.6.x] Fixed #20786 -- Cleaned up docs/ref/exceptions.txt
Thanks Daniele Procida for the suggestion and edits.

Backport of 920b242e30 from master
2013-08-02 09:43:20 -04:00
Aleksandra Sendecka
6e4fd816c4 [1.6.x] Fixed #18777 -- Localized form fields with as_text/as_hidden
Thanks croldan for the report.

Backport of 893d8de6f5 from master
2013-08-02 08:43:19 -04:00
Tim Graham
196cc875b2 [1.6.x] Fixed #17519 -- Fixed missing SQL constraints to proxy models.
Thanks thibaultj for the report, jenh for the patch,
and charettes for the tests.

Backport of aa830009de from master
2013-08-02 08:42:19 -04:00
Tim Graham
b3e54f4a01 [1.6.x] Removed unused model option "admin"
Backport of 5df84b268d from master
2013-08-01 12:33:19 -04:00
Tim Graham
d32471f8c2 [1.6.x] Added a bugfix in docutils 0.11 -- docs will now build properly.
Backport of a3a59a3197 from master
2013-07-31 09:26:11 -04:00
SusanTan
bc617fd42c [1.6.x] Fixed #20779 -- Documented AdminSite.app_index_template; refs #8498.
Thanks CollinAnderson for the report.

Backport of 7de35a9ef3 from master
2013-07-31 07:09:37 -04:00
Baptiste Mispelon
badca4716f [1.6.x] Fixed #10491 -- Allowed passing lazy objects to HttpResponseRedirect.
Thanks liangent for the report.

Backport of 3c45fb8589 from master
2013-07-30 13:40:18 -04:00
MinRK
bf132bcb8d [1.6.x] Added support for IPython.start_ipython in shell
IPython 1.0 introduces an actual stable public API function
for starting a normal (non-embedded) IPython session.

This is an official public API, which is promised to survive implementation changes.
2013-07-30 10:24:16 -07:00
Aymeric Augustin
88e4a3a3d9 [1.6.x] Fixed a test that could fail depending on PASSWORD_HASHERS.
Thanks Claude. Refs #20760.

Backport of 5b47a9c5a0dcb513dc5ff68b617b3aa374c90f3b from master.
2013-07-30 16:18:44 +02:00
Shai Berger
17e632929c [1.6.x] Fixed #20785 -- Corrected exception caught for Oracle LIKE operator detection
The code that tests to see which LIKE expressions to use now runs
using non-error-wrapped cursor, so cx_Oracle exceptions need to be caught
rather than Django DatabaseErrors.

Thanks Trac user ludo for report and initial patch.
2013-07-30 03:32:02 +03:00
Tim Graham
e82846a9aa [1.6.x] Fixed #20823 -- Typo in docs/ref/forms/validation.txt
Backport of 05ea5a2139 from master
2013-07-29 18:42:22 -04:00
minusf
518faa19c1 [1.6.x] Misc doc cleanups.
Backport of 70c080fcdb from master
2013-07-29 07:06:29 -04:00
minusf
5f8bf4368d [1.6.x] Allowed overriding variables in docs/Makefile.
Backport of c694e6220e from master
2013-07-29 06:52:42 -04:00
Jannis Leidel
c456a27725 [1.6.x] Fixed #20774 -- Mention the new django-localflavor app as a replacement for the contrib app. Backport from master. 2013-07-29 12:05:47 +02:00
Tim Graham
192154fb17 [1.6.x] Fixed ReST typo in topics/class-based-views/mixins.txt
Backport of 0b35a2cce3 from master
2013-07-28 14:10:11 -04:00
Florian Apolloner
081a27c358 [1.6.x] Simplified smart_urlquote and added some basic tests.
Backport of b70c371fc1f18ea0c43b503122df3f311afc7105 from master.
2013-07-28 10:07:01 +02:00
Tim Graham
dbbd2b1272 [1.6.x] Fixed #20805 -- Removed an extra colon beside checkboxes in the admin.
Thanks CollinAnderson for the report.

Backport of 8676318d2d from master
2013-07-26 14:47:58 -04:00
Tim Graham
5cc1ea4773 [1.6.x] Updated contrib.admin to use Email/URLInputs; refs #16630
Backport of 2a979d2a7b from master
2013-07-26 08:02:10 -04:00
Anssi Kääriäinen
7f892cedba [1.6.x] Fixed related model lookup regression
It has been possible to use models of wrong type in related field
lookups. For example pigs__in=[a_duck] has worked. Changes to
ForeignObject broke that.

It might be a good idea to restrict the model types usable in lookups.
This should be done intentionally, not accidentally and without any
consideration for deprecation path.

Backpatch of 7cca8d56d28e321ffc395c92f82d97adaa0dcf94 from master.
2013-07-26 13:17:50 +03:00
Aymeric Augustin
efdf7442bb [1.6.x] Added versionadded directive missing from b7bd708.
Backport of 5ed7ec9 from master.
2013-07-25 20:16:02 +02:00
Tim Graham
68c01e15a5 [1.6.x] Fixed #20769 -- Added "Python compatibility" section to the 1.6 release notes.
Backport of bddb4a6818 from master
2013-07-25 13:04:18 -04:00
Tim Graham
9abbad491a [1.6.x] Fixed #20679 -- Corrected CachedFilesMixin.post_process docstring.
Thanks bmispelon for the report.

Backport of 9b88dd3809 from master
2013-07-25 12:32:38 -04:00
mark hellewell
ec6928be34 [1.6.x] Fixed #18315 -- Documented QueryDict.popitem and QueryDict.pop
Thanks gcbirzan for the report.

Backport of 8c9240222f from master
2013-07-25 11:08:47 -04:00
Anssi Kääriäinen
d439f85bbf [1.6.x] Fixed ._meta.pk_index() virtual field failure
Backport of 92476e880c from master
2013-07-25 16:35:04 +03:00
Brenton Cleeland
7604749871 [1.6.x] Fixed #20792 -- Corrected DISALLOWED_USER_AGENTS docs.
Thanks simonb for the report.

Backport of dab52d99fc from master
2013-07-25 07:39:36 -04:00
Jon Lønne
cd46463eb1 [1.6.x] Fixed typo in Custom management commands documentation.
Backport of 5a5d594717 from master
2013-07-24 07:33:49 -04:00
Dominic Rodger
45d5a4e7d2 [1.6.x] Fixed #20794 -- Documented changes to validate_email
4e2e8f39d changed the way validate_email behaves for foo@localhost
email addresses, but wasn't listed in the release notes.
Backport of c928725b9 from master.
2013-07-24 10:27:34 +02:00
ersran9
7295a8262f [1.6.x] Fixed #20791 -- Reworded ForeignKey default error message
Backport of 311c1d2848 from master.
2013-07-23 22:19:02 +02:00
Aymeric Augustin
4525eab077 [1.6.x] Fixed #20760 -- Reduced timing variation in ModelBackend.
Thanks jpaglier and erikr.

Backport of 5dbca13f3baa2e1bafd77e84a80ad6d8a074712e from master.
2013-07-23 15:43:43 +02:00
Kirill Fomichev
ad898453b7 [1.6.x] Fixed #19019 -- Fixed UserAdmin to log password change.
Thanks Tuttle for the report.

Backport of 33242fe015 from master
2013-07-23 08:33:38 -04:00
Anssi Kääriäinen
43f1d51b4b [1.6.x] Minor change to get_extra_descriptor_filter()
Refs #20611. Backpatch of 6b4967e88368934dbbb1f289c790ab813fa59c72.
2013-07-23 15:37:26 +03:00
Claude Paroz
92f66a6134 [1.6.x] Fixed #20773 -- [gis] Fixed regression in GoogleMap output
Thanks Martyn Clement for the report and the initial patch.
Backport of 27c1a7257 from master.
2013-07-22 10:03:31 +02:00
Claude Paroz
816bf0c6a7 [1.6.x] Fixed #20781 -- Fixed _has_changed regression with MultiValueField
Thanks Tim Graham for the report.
Backport of 02b0106d from master.
2013-07-22 09:07:04 +02:00
Claude Paroz
48516d3b85 [1.6.x] Fixed an email validation regression
Thanks Vincent Wagelaar for the report.
Backport of 11b7b9ad from master.
2013-07-21 21:12:50 +02:00
Karen Tracey
706e542eb5 [1.6.x] Fixed #13696 -- ensured inline pk field is rendered
Backport of 3aad955ea8db1592fad0012155eaa25b72e50dc5 from master.
2013-07-21 13:13:20 -04:00
Simon Charette
9d3f7a21a3 [1.6.x] Fixed #20765 -- Set small values of step using exponential notation.
Browsers parse small factors of 10 as 0 under decimal notation.

Thanks to Trac alias matklad for the report and Claude Paroz for the review.

Backport of 415a36947c from master.
2013-07-19 23:45:29 -04:00
Sergio Oliveira
496f319970 [1.6.x] LocaleMiddleware isn't default anymore (corrected docs)
Changed in @23229061fcb836ecca2195cc75f91e331279a5d1

Backport of cf6c754629 from master
2013-07-19 06:36:26 -04:00
Matt Deacalion Stevens
9b26cb72d9 [1.6.x] Updated the databases documentation
+ Removed a reference about MySQL storage engines also being
   called 'table types', as this term has been deprecated for
   8 years and is no longer used.

 + Fixed the link to the official InnoDB storage engine docs.

 + Apache (versions >= 2.4) will always choose a multi-threaded
   MPM module on modern operating systems (later than 2002).

Backport of fa217d14a0 from master
2013-07-19 06:31:38 -04:00
Matt Deacalion Stevens
e7435fbe2f [1.6.x] Fixed Croatia's country code in localflavor docs
Backport of 97e5398629 from master
2013-07-19 05:30:55 -04:00
Loic Bistuer
b7556a4980 [1.6.x] Fixed #20772 -- Fixed minor typo in form media docs.
Backport of aa41eb9b8b from master
2013-07-19 05:19:46 -04:00
Loic Bistuer
c660f0e985 [1.6.x] Fixed #20767 -- Fixed ModelAdmin.preserve_filters for namespaced URLs.
Thanks Collin Anderson for the report.

Backport of 2fc6c9472c from master.
2013-07-18 18:23:21 -04:00
Tim Graham
579ca9ee8d [1.6.x] Fixed #20762 -- Clarified that add_fieldsets is not a standard ModelAdmin attribute.
Backport of dce8945ea6 from master
2013-07-18 12:41:51 -04:00
Matt Deacalion Stevens
fcd5f3a8d9 [1.6.x] Atom specification URL updated
Changed to the URL of the official RFC for Atom, since Atomenabled.org
is just a holding page.

Backport of beefc97171 from master
2013-07-18 08:47:58 -04:00
Tim Graham
1641aa7119 [1.6.x] Fixed #20763 -- Typo in tutorial 3.
Thanks crichard@ for the report.

Backport of fd95dc9e27 from master
2013-07-18 08:06:50 -04:00
Alasdair Nicol
9d9f670d93 [1.6.x] Fixed typo in inspectdb docs
Backport of 1131d4191f from master
2013-07-18 07:46:42 -04:00
Tim Graham
0db3c45f80 [1.6.x] Fixed #20756 -- Typo in uWSGI docs.
Backport of a3242dc9fe from master
2013-07-17 06:51:34 -04:00
Loic Bistuer
ed473d61e5 [1.6.x] Reworked docs for ModelForm validation.
Backport of fba6c2ede7 from master
2013-07-16 19:21:55 -04:00
Tim Graham
3d25f592fe [1.6.x] Fixed some markup in docs/ref/templates/api.txt
Backport of 862a04a56d from master
2013-07-15 11:31:38 -04:00
David Binetti
f8fd38b560 [1.6.x] Fixed grammatical error in auth docs
Backport of 51b50c47c7 from master
2013-07-14 12:35:26 -04:00
Tim Graham
e5241902f3 [1.6.x] Fixed #20681 -- Prevented teardown_databases from attempting to tear down aliases
Thanks simonpercivall.

Backport of d9c580306c from master
2013-07-13 17:46:37 -04:00
Tim Graham
26b88e7658 [1.6.x] Fixed a deprecation warning in a selenium test.
Backport of 9b471a8fe3 from master
2013-07-13 13:22:00 -04:00
Claude Paroz
db33b25e86 [1.6.x] Fixed #20582 -- Allowed default Form.label_suffix to be translated
Thanks Tim Graham for the review.
Backport of 7557207983 from master.
2013-07-13 16:20:09 +02:00
Tim Graham
7f210563ab [1.6.x] Fixed backport of #20740 2013-07-12 18:00:09 -04:00
Tim Graham
45fab74561 [1.6.x] Fixed #20740 -- GenericIPAddressField should pass protocol to formfield()
Thanks Jeff250.

Backport of f2cb94f1c0 from master
2013-07-12 16:06:43 -04:00
Tim Graham
b30a872973 [1.6.x] Fixed #20653 -- Renamed checksetup -> check missed in [03465639]
Thanks CollinAnderson for the report.

Backport of a7d97a6778 from master
2013-07-12 12:50:53 -04:00
Tim Graham
1c8e539a77 [1.6.x] Fixed #17528 -- Documented that add() and remove() with a many-to-many relationship do not call Model.save()
Backport of 3cdeb572d7 from master
2013-07-12 06:22:19 -04:00
Christopher Medrela
9bb04b1a6b [1.6.x] Fixed #20735 -- clarified ManyToManyField constructor doc
Backport of ac223ff6d1 from master
2013-07-12 06:06:17 -04:00
Tim Graham
fe0a563f81 [1.6.x] Fixed #20730 -- Fixed "Programmatically creating permissions" error.
Thanks glarrain for the report.

Backport of 684a606a4e from master
2013-07-11 11:07:51 -04:00
Tim Graham
f93b2fe7e6 [1.6.x] Fixed #20733 -- Typo in docs/ref/class-based-views/generic-display.txt
Thanks ijl20@ for the report.

Backport of ecd746191c from master
2013-07-11 07:37:42 -04:00
Tim Graham
2e3250fc90 [1.6.x] Added some missing test requirements in the docs; refs #19196
Backport of 77856dc875 from master
2013-07-10 12:02:56 -04:00
Tim Graham
aecbaaed0c [1.6.x] Fixed #19196 -- Added test/requirements
Backport of 4d92a0bd86 from master.
2013-07-10 09:37:15 -04:00
Aymeric Augustin
a2b4af3a1a Fixed #20724 -- Test failure on SQLite.
This test failure happened if the connection's NAME was set to a file
system path, and its TEST_NAME wasn't.

Thanks Claude for the report.

Conflicts:
	tests/transactions_regress/tests.py

Backport of 404870ee1f0d15f6b81d0e0b059068b1f020b2f1 from master.
2013-07-09 21:43:20 +02:00
Aymeric Augustin
d200405471 Avoided transaction.set_autocommit in tests.
It doesn't work as one might expect on a certain database backend where
autocommits_when_autocommit_is_off = True. That backend happens to be
popular for running tests.

Backport of 38bc581bc02d83ecab6d19514ac51b57f0e11866 from master.
2013-07-09 21:42:11 +02:00
Shai Berger
ae685e54cb [1.6.x] Fixed last_executed_query test failure on Oracle
Backport of c0a4894dca from master.
2013-07-09 19:52:16 +02:00
Tim Graham
7788c71890 [1.6.x] Fixed #20722 -- Fixed MemcachedCache backend get_many on Python 3.
Backport of 3c736207a3 from master
2013-07-09 11:57:44 -04:00
Claude Paroz
e2c1e9ef55 [1.6.x] Partial revert of commit 2bf403ecbd95
Homework: write 100 times geoapp is not geogapp.
Backport of 57815e2630 from master.
2013-07-09 14:34:16 +02:00
SusanTan
c1b24b09f4 [1.6.x] Fixed #18261 -- Clarified 'project root directory'
Backport of ef3fddf26e from master
2013-07-09 07:16:31 -04:00
Tim Graham
f03398a246 [1.6.x] Fixed #18944 -- Documented PasswordResetForm's from_email argument as a backwards incompatible change for 1.3
Thanks DrMeers for the report.

Backport of dab921751d from master
2013-07-08 15:06:31 -04:00
James Bennett
b2afe39663 [1.6.x] Fixed #19695 -- Retitle "Form Media" to "Form Assets".
Backport of c0f03175ce from master
2013-07-08 14:09:02 -04:00
Tim Graham
730069197f [1.6.x] Fixed #16965 -- Clarified Formset can_delete docs.
Thanks gregcorey@ for the suggestion.

Backport of 660c30ed95 from master
2013-07-08 12:21:25 -04:00
Tim Graham
67a6b5e53f [1.6.x] Fixed #20493 -- Added a warning that objects may not be picklable across Django versions
Thanks cataliniacob for the suggestion and review.

Backport of 1084575163 from master
2013-07-08 09:59:02 -04:00
Tim Graham
cf8d0933cb [1.6.x] Fixed #12346 -- Added a note on how to validate InlineFormSets.
Thanks johnsmith for the suggestion.

Backport of 181f63c22d from master
2013-07-08 08:31:46 -04:00
Claude Paroz
0a84cbadb7 [1.6.x] Completed some more name_local names
Backport of 9383e37a7.
2013-07-08 12:04:38 +02:00
Mathias Andre
ced144155e [1.6.x] Fixed #20716 --Missing 'name_local' translation
Added 'name_local' translation for Albanian in LANG_INFO
Backport of 8c18f6f61c8 from master.
2013-07-08 12:04:10 +02:00
SusanTan
40d2687787 [1.6.x] Fixed #20711 -- Fixed broken link in timesince.py docstring
Backport of d63327d843 from master.
2013-07-07 12:40:44 -04:00
Tim Graham
a22b2aea19 [1.6.x] Fixed #14006 -- Documented that Field's 'description' attribute is interpolated with field.__dict__
Thanks abeld for the suggestion.

Backport of 2d96e660f9 from master.
2013-07-06 18:34:29 -04:00
Claude Paroz
a9dd6221af [1.6.x] Fixed #20224 -- Update docs examples which mention __unicode__
Thanks Marc Tamlyn and Tim Graham for the review.
Backport of 7442eb1a24 from master.
2013-07-05 19:30:08 +02:00
Tim Graham
430aae1b0d [1.6.x] Fixed #20561 -- Emphasized that QuerySet.distinct([*fields]) is only supported by Postgres.
Thanks jtiai for the suggestion.

Backport of 577b0f9189 from master.
2013-07-05 07:21:13 -04:00
Tim Graham
14a5b79e29 [1.6.x] Fixed #19539 -- Updated custom model fields example for Python 3.
Thanks astorije@ for the report.

Backport of b9fceadfd4 from master.
2013-07-05 06:54:34 -04:00
hekevintran
80dc8175a6 [1.6.x] fixed grammar
Backport of 62a826ab31 from master.
2013-07-05 10:58:35 +01:00
Tim Graham
d14db25fee [1.6.x] Fixed #19940 -- Made test.runner.setup_databases properly handle aliases for default db.
Thanks simonpercivall.

Backport of 2cbd579efe from master.
2013-07-04 20:15:27 -04:00
Tim Graham
541a30c376 [1.6.x] Fixed #20134 -- Correct list of fields that UserManager requires.
Thanks semenov and pegler.

Backport of da5069f68f from master.
2013-07-04 10:20:02 -04:00
Tim Graham
23748c483b [1.6.x] Fixed #20673 -- Clarified that HttpRequest.user uses AUTH_USER_MODEL.
Thanks littlepig for the report.

Backport of f407f75aae from master.
2013-07-04 09:34:02 -04:00
Tim Graham
9687e387d8 [1.6.x] Fixed #12579 -- Noted QuerySet.get_or_create() depends on database unique constraints.
Thanks timmolendijk, jdunck, vijay_shanker, and loic84.

Backport of 428de2e339 from master.
2013-07-04 08:32:49 -04:00
Tim Graham
25b9939fed [1.6.x] Fixed #20690 -- Mentioned LOCALE_PATHS earlier in translation docs.
Thanks rene@ for the suggestion.

Backport of 231e31c690 from master.
2013-07-04 05:45:16 -04:00
Simon Charette
2de0d4c452 [1.6.x] Fixed #20675 -- check_password should work when no password is specified.
The regression was introduced by 2c4fe761a. refs #20593.

Backport of 8759778185 from master.
2013-07-03 14:12:56 -04:00
SusanTan
75041d5ea3 [1.6.x] Fixed #20609 -- Documented how to use request.user with RequestFactory
Thanks michel@ for the suggestion.

Backport of 067e0424ce from master.
2013-07-03 11:11:04 -04:00
Tomáš Ehrlich
2f9e5483f6 [1.6.x] Fixed #20687 -- Added documentation for django.core.signing API.
Thanks Baptiste Mispelon for the suggestion.

Backport of c5bc98d7e1 from master.
2013-07-03 10:38:53 -04:00
Claude Paroz
295a925cef [1.6.x] Added check when fetching and updating translations from Transifex
So as syntax errors in po files don't go unnoticed. Refs #20695.
Backport of 63b215591 from master.
2013-07-03 16:15:52 +02:00
Tim Graham
b36f55c5a5 [1.6.x] Fixed #20691 -- Added a note for __str__() vs. __unicode__() and Python 3.
Thanks garrison for the suggestion.

Backport of 8a679386c3 from master.
2013-07-03 08:46:05 -04:00
Tim Graham
5ecdf0eb9c [1.6.x] A couple more semicolon -> colon fixes; refs #18134.
Backport of 3632d289de from master.
2013-07-02 14:16:22 -04:00
Tim Graham
4c1029971e [1.6.x] Fixed a couple form/formset deprecation warnings in tests.
Backport of a521d10322 from master.
2013-07-01 09:38:29 -04:00
Tim Graham
3c51962cab [1.6.x] Updated tests for deprecation of Option.get_(add|change|delete)_permission.
refs #20642.

Backport of a6a905c619 from master.
2013-07-01 09:21:07 -04:00
Baptiste Mispelon
e03a88ba21 [1.6.x] Fixed #20659 -- Fixed PublisherDetail in CBV topic documentation.
Backport of 88de53d4a86548016f245a1413b856aa334bc737 from master.
2013-07-01 14:10:03 +02:00
Aymeric Augustin
0de21a6a7a Stopped branding Python 3 support as experimental. 2013-07-01 11:52:00 +02:00
Aymeric Augustin
c1d8f3b207 Updated FAQ on Python versions to explain 2 vs 3.
Required the latest version for each Python series to minimize
bookkeeping in the future.
2013-07-01 11:48:58 +02:00
Tim Graham
3493f18d78 [1.6.x] Fixed #20667 - Removed discussion of DEBUG from tutorial.
Backport of 0d642aac86 from master.
2013-06-30 14:56:10 -04:00
Aymeric Augustin
02976a46c9 [1.6.x] Introduced getters for connection.autocommit and .needs_rollback.
They ensure that the attributes aren't accessed in conditions where they
don't contain a valid value.

Fixed #20666.

Backport of dd9c6bc359a799fcbed647055b596239956a472a from master.
2013-06-30 16:29:57 +02:00
Aymeric Augustin
d255004289 [1.6.x] Stopped calling loaddata with commit=False.
This was a stealth option only used by the tests, and it isn't useful
any more since `atomic` provides nested transactions.

Backport of 2c40681 from master.
2013-06-30 14:20:29 +02:00
Tim Graham
b930733a67 [1.6.x] Fixed #20677 - Typos in generic_inlineformset_factory docs.
Thanks Riley Strong for the report.

Backport of 3fd0ee5b46 from master
2013-06-29 14:16:36 -04:00
Claude Paroz
59be2c6875 [1.6.x] Fixed #18592 -- Prevented crash when accessing MySQL _last_executed
Thanks reames at asymmetricventures.com for the report.
Backport of 59b0c48ce from master.
2013-06-29 18:48:05 +02:00
Claude Paroz
a9b5a1e506 [1.6.x] Do not allow FileSystemStorage.delete to receive an empty name
Refs #20660.
Backport of 7fbab3eba from master.
2013-06-29 18:12:23 +02:00
Claude Paroz
b6aed803b2 [1.6.x] Fixed #20660 -- Do not try to delete an unset FieldFile
Thanks stanislas.guerra at gmail.com for the report and
Baptiste Mispelon for the review.
Backport of ea3fe78a9d from master.
2013-06-29 18:11:51 +02:00
Florian Apolloner
c55cb6fa45 [1.6.x] Removed comment from setup.cfg which broke newer wheel versions.
Backport of b5f709e6f4c67020bedb141b9b18c5cd1e05f829 from master.
2013-06-29 16:28:52 +02:00
Aymeric Augustin
6908b65939 [1.6.x] Removed obsolete comment. Refs #20079.
Thanks Gavin Wahl.
2013-06-29 11:43:41 +02:00
Florian Apolloner
7bd9c32f14 [1.6.x] Fixed 1.6 release notes.
Backport of adc6f38867dd5b57c9e1c50395eec01f6bdd651f from master.
2013-06-29 10:52:11 +02:00
Simon Charette
e628753e7d [1.6.x] Added missing deprecation note for model permission methods.
refs #20642.

Backport of e1dd24d2f from master.
2013-06-28 15:49:40 -04:00
Claude Paroz
dc99128343 [1.6.x] Updated FAQ to reflect official Python 3 support
Backport of 8809da67a from master.
2013-06-28 16:39:50 +02:00
Claude Paroz
ec2a102d84 [1.6.x] Updated FAQ entry about python 3
Backport of 94f420ef4 from master.
2013-06-28 16:28:02 +02:00
Jacob Kaplan-Moss
70f2d9aaff Updated version numbers and setup.py for 1.6beta. 2013-06-28 08:15:10 -05:00
6294 changed files with 302311 additions and 422426 deletions

View File

@ -1,41 +0,0 @@
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
end_of_line = lf
charset = utf-8
# Docstrings and comments use max_line_length = 79
[*.py]
max_line_length = 119
# Use 2 spaces for the HTML files
[*.html]
indent_size = 2
# The JSON files contain newlines inconsistently
[*.json]
indent_size = 2
insert_final_newline = ignore
[**/admin/js/vendor/**]
indent_style = ignore
indent_size = ignore
# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore
# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab
# Batch files use tabs for indentation
[*.bat]
indent_style = tab

View File

@ -1,4 +0,0 @@
**/*.min.js
**/vendor/**/*.js
django/contrib/gis/templates/**/*.js
node_modules/**.js

View File

@ -1,33 +0,0 @@
{
"rules": {
"camelcase": [0, {"properties": "always"}],
"comma-spacing": [2, {"before": false, "after": true}],
"dot-notation": [2, {"allowKeywords": true}],
"curly": [2, "all"],
"indent": [2, 4],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"new-cap": [0, {"newIsCap": true, "capIsNew": true}],
"no-alert": [0],
"no-eval": [2],
"no-extend-native": [2, {"exceptions": ["Date", "String"]}],
"no-multi-spaces": [2],
"no-octal-escape": [2],
"no-underscore-dangle": [2],
"no-unused-vars": [2, {"vars": "local", "args": "none"}],
"no-script-url": [2],
"no-shadow": [2, {"hoist": "functions"}],
"quotes": [0, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-infix-ops": [2, {"int32Hint": false}],
"strict": [1, "function"]
},
"env": {
"browser": true
},
"globals": {
"django": false
}
}

2
.gitattributes vendored
View File

@ -1,7 +1,5 @@
# Normalize line endings to avoid spurious failures in the core test suite on Windows.
*html text eol=lf
*css text eol=lf
*js text eol=lf
tests/staticfiles_tests/apps/test/static/test/*txt text eol=lf
tests/staticfiles_tests/project/documents/test/*txt text eol=lf
docs/releases/*.txt merge=union

8
.gitignore vendored
View File

@ -1,18 +1,10 @@
# If you need to exclude files such as those generated by an IDE, use
# $GIT_DIR/info/exclude or the core.excludesFile configuration variable as
# described in https://git-scm.com/docs/gitignore
*.egg-info
*.pot
*.py[co]
.tox/
__pycache__
MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/

View File

@ -4,12 +4,6 @@ syntax:glob
*.pot
*.py[co]
__pycache__
MANIFEST
dist/
docs/_build/
docs/locale/
node_modules/
tests/coverage_html/
tests/.coverage
build/
tests/report/

View File

@ -1,6 +1,6 @@
[main]
host = https://www.transifex.com
lang_map = sr@latin:sr_Latn, zh_CN:zh_Hans, zh_TW:zh_Hant
lang_map = sr@latin:sr_Latn
[django.core]
file_filter = django/conf/locale/<lang>/LC_MESSAGES/django.po
@ -27,6 +27,11 @@ file_filter = django/contrib/auth/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/auth/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-comments]
file_filter = django/contrib/comments/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/comments/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-contenttypes]
file_filter = django/contrib/contenttypes/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/contenttypes/locale/en/LC_MESSAGES/django.po
@ -37,6 +42,11 @@ file_filter = django/contrib/flatpages/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/flatpages/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-formtools]
file_filter = django/contrib/formtools/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/formtools/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-gis]
file_filter = django/contrib/gis/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/gis/locale/en/LC_MESSAGES/django.po
@ -47,9 +57,9 @@ file_filter = django/contrib/humanize/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/humanize/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-postgres]
file_filter = django/contrib/postgres/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/postgres/locale/en/LC_MESSAGES/django.po
[django.contrib-messages]
file_filter = django/contrib/messages/locale/<lang>/LC_MESSAGES/django.po
source_file = django/contrib/messages/locale/en/LC_MESSAGES/django.po
source_lang = en
[django.contrib-redirects]

1411
AUTHORS

File diff suppressed because it is too large Load Diff

View File

@ -15,8 +15,7 @@ Extensive contribution guidelines are available in the repository at
https://docs.djangoproject.com/en/dev/internals/contributing/
**Warning: non-trivial pull requests (anything more than fixing a typo) without
Trac tickets will be closed!** `Please file a ticket`__ to suggest changes.
**Warning: pull requests are ignored!** `File a ticket`__ to suggest changes.
__ https://code.djangoproject.com/newticket
@ -24,9 +23,3 @@ Django uses Trac to keep track of bugs, feature requests, and associated
patches because GitHub doesn't provide adequate tooling for its community.
Patches can be submitted as pull requests, but if you don't file a ticket,
it's unlikely that we'll notice your contribution.
Code of Conduct
===============
As a contributor, you can help us keep the Django community open and inclusive.
Please read and follow our `Code of Conduct <https://www.djangoproject.com/conduct/>`_.

View File

@ -1,13 +0,0 @@
var globalThreshold = 50; // Global code coverage threshold (as a percentage)
module.exports = function(grunt) {
grunt.initConfig({
qunit: {
all: ['js_tests/tests.html']
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.registerTask('test', ['qunit']);
grunt.registerTask('default', ['test']);
};

View File

@ -1,6 +1,6 @@
Thanks for downloading Django.
To install it, make sure you have Python 2.7 or greater installed. Then run
To install it, make sure you have Python 2.6 or greater installed. Then run
this command from the command prompt:
python setup.py install
@ -12,6 +12,7 @@ site-packages directory, which is located wherever your Python installation
lives. Some places you might check are:
/usr/lib/python2.7/site-packages (Unix, Python 2.7)
/usr/lib/python2.6/site-packages (Unix, Python 2.6)
C:\\PYTHON\site-packages (Windows)
For more detailed instructions, see docs/intro/install.txt.

View File

@ -4,10 +4,10 @@ All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

View File

@ -1,255 +0,0 @@
A. HISTORY OF THE SOFTWARE
==========================
Python was created in the early 1990s by Guido van Rossum at Stichting
Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands
as a successor of a language called ABC. Guido remains Python's
principal author, although it includes many contributions from others.
In 1995, Guido continued his work on Python at the Corporation for
National Research Initiatives (CNRI, see http://www.cnri.reston.va.us)
in Reston, Virginia where he released several versions of the
software.
In May 2000, Guido and the Python core development team moved to
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
year, the PythonLabs team moved to Digital Creations (now Zope
Corporation, see http://www.zope.com). In 2001, the Python Software
Foundation (PSF, see http://www.python.org/psf/) was formed, a
non-profit organization created specifically to own Python-related
Intellectual Property. Zope Corporation is a sponsoring member of
the PSF.
All Python releases are Open Source (see http://www.opensource.org for
the Open Source Definition). Historically, most, but not all, Python
releases have also been GPL-compatible; the table below summarizes
the various releases.
Release Derived Year Owner GPL-
from compatible? (1)
0.9.0 thru 1.2 1991-1995 CWI yes
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
1.6 1.5.2 2000 CNRI no
2.0 1.6 2000 BeOpen.com no
1.6.1 1.6 2001 CNRI yes (2)
2.1 2.0+1.6.1 2001 PSF no
2.0.1 2.0+1.6.1 2001 PSF yes
2.1.1 2.1+2.0.1 2001 PSF yes
2.1.2 2.1.1 2002 PSF yes
2.1.3 2.1.2 2002 PSF yes
2.2 and above 2.1.1 2001-now PSF yes
Footnotes:
(1) GPL-compatible doesn't mean that we're distributing Python under
the GPL. All Python licenses, unlike the GPL, let you distribute
a modified version without making your changes open source. The
GPL-compatible licenses make it possible to combine Python with
other software that is released under the GPL; the others don't.
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
because its license has a choice of law clause. According to
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
is "not incompatible" with the GPL.
Thanks to the many outside volunteers who have worked under Guido's
direction to make these releases possible.
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
===============================================================
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
--------------------------------------------
1. This LICENSE AGREEMENT is between the Python Software Foundation
("PSF"), and the Individual or Organization ("Licensee") accessing and
otherwise using this software ("Python") in source or binary form and
its associated documentation.
2. Subject to the terms and conditions of this License Agreement, PSF hereby
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python alone or in any derivative version,
provided, however, that PSF's License Agreement and PSF's notice of copyright,
i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
2011, 2012, 2013, 2014, 2015, 2016 Python Software Foundation; All Rights
Reserved" are retained in Python alone or in any derivative version prepared by
Licensee.
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python.
4. PSF is making Python available to Licensee on an "AS IS"
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. Nothing in this License Agreement shall be deemed to create any
relationship of agency, partnership, or joint venture between PSF and
Licensee. This License Agreement does not grant permission to use PSF
trademarks or trade name in a trademark sense to endorse or promote
products or services of Licensee, or any third party.
8. By copying, installing or otherwise using Python, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
-------------------------------------------
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
Individual or Organization ("Licensee") accessing and otherwise using
this software in source or binary form and its associated
documentation ("the Software").
2. Subject to the terms and conditions of this BeOpen Python License
Agreement, BeOpen hereby grants Licensee a non-exclusive,
royalty-free, world-wide license to reproduce, analyze, test, perform
and/or display publicly, prepare derivative works, distribute, and
otherwise use the Software alone or in any derivative version,
provided, however, that the BeOpen Python License is retained in the
Software, alone or in any derivative version prepared by Licensee.
3. BeOpen is making the Software available to Licensee on an "AS IS"
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
5. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
6. This License Agreement shall be governed by and interpreted in all
respects by the law of the State of California, excluding conflict of
law provisions. Nothing in this License Agreement shall be deemed to
create any relationship of agency, partnership, or joint venture
between BeOpen and Licensee. This License Agreement does not grant
permission to use BeOpen trademarks or trade names in a trademark
sense to endorse or promote products or services of Licensee, or any
third party. As an exception, the "BeOpen Python" logos available at
http://www.pythonlabs.com/logos.html may be used according to the
permissions granted on that web page.
7. By copying, installing or otherwise using the software, Licensee
agrees to be bound by the terms and conditions of this License
Agreement.
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
---------------------------------------
1. This LICENSE AGREEMENT is between the Corporation for National
Research Initiatives, having an office at 1895 Preston White Drive,
Reston, VA 20191 ("CNRI"), and the Individual or Organization
("Licensee") accessing and otherwise using Python 1.6.1 software in
source or binary form and its associated documentation.
2. Subject to the terms and conditions of this License Agreement, CNRI
hereby grants Licensee a nonexclusive, royalty-free, world-wide
license to reproduce, analyze, test, perform and/or display publicly,
prepare derivative works, distribute, and otherwise use Python 1.6.1
alone or in any derivative version, provided, however, that CNRI's
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
1995-2001 Corporation for National Research Initiatives; All Rights
Reserved" are retained in Python 1.6.1 alone or in any derivative
version prepared by Licensee. Alternately, in lieu of CNRI's License
Agreement, Licensee may substitute the following text (omitting the
quotes): "Python 1.6.1 is made available subject to the terms and
conditions in CNRI's License Agreement. This Agreement together with
Python 1.6.1 may be located on the Internet using the following
unique, persistent identifier (known as a handle): 1895.22/1013. This
Agreement may also be obtained from a proxy server on the Internet
using the following URL: http://hdl.handle.net/1895.22/1013".
3. In the event Licensee prepares a derivative work that is based on
or incorporates Python 1.6.1 or any part thereof, and wants to make
the derivative work available to others as provided herein, then
Licensee hereby agrees to include in any such work a brief summary of
the changes made to Python 1.6.1.
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
INFRINGE ANY THIRD PARTY RIGHTS.
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
6. This License Agreement will automatically terminate upon a material
breach of its terms and conditions.
7. This License Agreement shall be governed by the federal
intellectual property law of the United States, including without
limitation the federal copyright law, and, to the extent such
U.S. federal law does not apply, by the law of the Commonwealth of
Virginia, excluding Virginia's conflict of law provisions.
Notwithstanding the foregoing, with regard to derivative works based
on Python 1.6.1 that incorporate non-separable material that was
previously distributed under the GNU General Public License (GPL), the
law of the Commonwealth of Virginia shall govern this License
Agreement only as to issues arising under or with respect to
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
License Agreement shall be deemed to create any relationship of
agency, partnership, or joint venture between CNRI and Licensee. This
License Agreement does not grant permission to use CNRI trademarks or
trade name in a trademark sense to endorse or promote products or
services of Licensee, or any third party.
8. By clicking on the "ACCEPT" button where indicated, or by copying,
installing or otherwise using Python 1.6.1, Licensee agrees to be
bound by the terms and conditions of this License Agreement.
ACCEPT
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
--------------------------------------------------
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
The Netherlands. All rights reserved.
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

View File

@ -1,17 +1,37 @@
include README.rst
include AUTHORS
include Gruntfile.js
include INSTALL
include LICENSE
include LICENSE.python
include MANIFEST.in
include package.json
include *.rst
graft django
prune django/contrib/admin/bin
graft docs
graft extras
graft js_tests
graft scripts
graft tests
global-exclude __pycache__
global-exclude *.py[co]
include django/contrib/gis/gdal/LICENSE
include django/contrib/gis/geos/LICENSE
include django/dispatch/license.txt
recursive-include docs *
recursive-include scripts *
recursive-include extras *
recursive-include tests *
recursive-include django/conf/app_template *
recursive-include django/conf/locale *
recursive-include django/conf/project_template *
recursive-include django/contrib/*/locale *
recursive-include django/contrib/admin/templates *
recursive-include django/contrib/admin/static *
recursive-include django/contrib/admindocs/templates *
recursive-include django/contrib/auth/fixtures *
recursive-include django/contrib/auth/templates *
recursive-include django/contrib/auth/tests/templates *
recursive-include django/contrib/comments/templates *
recursive-include django/contrib/formtools/templates *
recursive-include django/contrib/formtools/tests/templates *
recursive-include django/contrib/flatpages/fixtures *
recursive-include django/contrib/flatpages/tests/templates *
recursive-include django/contrib/gis/templates *
recursive-include django/contrib/gis/tests/data *
recursive-include django/contrib/gis/tests/distapp/fixtures *
recursive-include django/contrib/gis/tests/geoapp/fixtures *
recursive-include django/contrib/gis/tests/geogapp/fixtures *
recursive-include django/contrib/gis/tests/relatedapp/fixtures *
recursive-include django/contrib/sitemaps/templates *
recursive-include django/contrib/sitemaps/tests/templates *
recursive-exclude * __pycache__
recursive-exclude * *.py[co]

View File

@ -1,43 +1,45 @@
Django is a high-level Python Web framework that encourages rapid development
and clean, pragmatic design. Thanks for checking it out.
All documentation is in the "``docs``" directory and online at
https://docs.djangoproject.com/en/stable/. If you're just getting started,
here's how we recommend you read the docs:
All documentation is in the "docs" directory and online at
http://docs.djangoproject.com/en/dev/. If you're just getting started, here's
how we recommend you read the docs:
* First, read ``docs/intro/install.txt`` for instructions on installing Django.
* First, read docs/intro/install.txt for instructions on installing Django.
* Next, work through the tutorials in order (``docs/intro/tutorial01.txt``,
``docs/intro/tutorial02.txt``, etc.).
* Next, work through the tutorials in order (docs/intro/tutorial01.txt,
docs/intro/tutorial02.txt, etc.).
* If you want to set up an actual deployment server, read
``docs/howto/deployment/index.txt`` for instructions.
docs/howto/deployment/index.txt for instructions.
* You'll probably want to read through the topical guides (in ``docs/topics``)
next; from there you can jump to the HOWTOs (in ``docs/howto``) for specific
problems, and check out the reference (``docs/ref``) for gory details.
* You'll probably want to read through the topical guides (in docs/topics)
next; from there you can jump to the HOWTOs (in docs/howto) for specific
problems, and check out the reference (docs/ref) for gory details.
* See ``docs/README`` for instructions on building an HTML version of the docs.
* See docs/README for instructions on building an HTML version of the docs.
Docs are updated rigorously. If you find any problems in the docs, or think
they should be clarified in any way, please take 30 seconds to fill out a
ticket here: https://code.djangoproject.com/newticket
Docs are updated rigorously. If you find any problems in the docs, or think they
should be clarified in any way, please take 30 seconds to fill out a ticket
here:
http://code.djangoproject.com/newticket
To get more help:
* Join the ``#django`` channel on irc.freenode.net. Lots of helpful people hang out
there. Read the archives at https://botbot.me/freenode/django/.
* Join the #django channel on irc.freenode.net. Lots of helpful people hang out
there. Read the archives at http://django-irc-logs.com/.
* Join the django-users mailing list, or read the archives, at
https://groups.google.com/group/django-users.
http://groups.google.com/group/django-users.
To contribute to Django:
* Check out https://docs.djangoproject.com/en/dev/internals/contributing/ for
information about getting involved.
* Check out http://www.djangoproject.com/community/ for information about
getting involved.
To run Django's test suite:
* Follow the instructions in the "Unit tests" section of
``docs/internals/contributing/writing-code/unit-tests.txt``, published online at
docs/internals/contributing/writing-code/unit-tests.txt, published online at
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/#running-the-unit-tests

View File

@ -1,27 +1,7 @@
from __future__ import unicode_literals
VERSION = (1, 6, 12, 'alpha', 0)
from django.utils.version import get_version
VERSION = (1, 11, 30, 'alpha', 0)
__version__ = get_version(VERSION)
def setup(set_prefix=True):
"""
Configure the settings (this happens as a side effect of accessing the
first setting), configure logging and populate the app registry.
Set the thread-local urlresolvers script prefix if `set_prefix` is True.
"""
from django.apps import apps
from django.conf import settings
from django.urls import set_script_prefix
from django.utils.encoding import force_text
from django.utils.log import configure_logging
configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
if set_prefix:
set_script_prefix(
'/' if settings.FORCE_SCRIPT_NAME is None else force_text(settings.FORCE_SCRIPT_NAME)
)
apps.populate(settings.INSTALLED_APPS)
def get_version(*args, **kwargs):
# Don't litter django/__init__.py with all the get_version stuff.
# Only import if it's actually called.
from django.utils.version import get_version
return get_version(*args, **kwargs)

View File

@ -1,9 +0,0 @@
"""
Invokes django-admin when the django module is run as a script.
Example: python -m django check
"""
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()

View File

@ -1,4 +0,0 @@
from .config import AppConfig
from .registry import apps
__all__ = ['AppConfig', 'apps']

View File

@ -1,207 +0,0 @@
import os
from importlib import import_module
from django.core.exceptions import ImproperlyConfigured
from django.utils._os import upath
from django.utils.module_loading import module_has_submodule
MODELS_MODULE_NAME = 'models'
class AppConfig(object):
"""
Class representing a Django application and its configuration.
"""
def __init__(self, app_name, app_module):
# Full Python path to the application eg. 'django.contrib.admin'.
self.name = app_name
# Root module for the application eg. <module 'django.contrib.admin'
# from 'django/contrib/admin/__init__.pyc'>.
self.module = app_module
# Reference to the Apps registry that holds this AppConfig. Set by the
# registry when it registers the AppConfig instance.
self.apps = None
# The following attributes could be defined at the class level in a
# subclass, hence the test-and-set pattern.
# Last component of the Python path to the application eg. 'admin'.
# This value must be unique across a Django project.
if not hasattr(self, 'label'):
self.label = app_name.rpartition(".")[2]
# Human-readable name for the application eg. "Admin".
if not hasattr(self, 'verbose_name'):
self.verbose_name = self.label.title()
# Filesystem path to the application directory eg.
# u'/usr/lib/python2.7/dist-packages/django/contrib/admin'. Unicode on
# Python 2 and a str on Python 3.
if not hasattr(self, 'path'):
self.path = self._path_from_module(app_module)
# Module containing models eg. <module 'django.contrib.admin.models'
# from 'django/contrib/admin/models.pyc'>. Set by import_models().
# None if the application doesn't have a models module.
self.models_module = None
# Mapping of lower case model names to model classes. Initially set to
# None to prevent accidental access before import_models() runs.
self.models = None
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, self.label)
def _path_from_module(self, module):
"""Attempt to determine app's filesystem path from its module."""
# See #21874 for extended discussion of the behavior of this method in
# various cases.
# Convert paths to list because Python 3's _NamespacePath does not
# support indexing.
paths = list(getattr(module, '__path__', []))
if len(paths) != 1:
filename = getattr(module, '__file__', None)
if filename is not None:
paths = [os.path.dirname(filename)]
else:
# For unknown reasons, sometimes the list returned by __path__
# contains duplicates that must be removed (#25246).
paths = list(set(paths))
if len(paths) > 1:
raise ImproperlyConfigured(
"The app module %r has multiple filesystem locations (%r); "
"you must configure this app with an AppConfig subclass "
"with a 'path' class attribute." % (module, paths))
elif not paths:
raise ImproperlyConfigured(
"The app module %r has no filesystem location, "
"you must configure this app with an AppConfig subclass "
"with a 'path' class attribute." % (module,))
return upath(paths[0])
@classmethod
def create(cls, entry):
"""
Factory that creates an app config from an entry in INSTALLED_APPS.
"""
try:
# If import_module succeeds, entry is a path to an app module,
# which may specify an app config class with default_app_config.
# Otherwise, entry is a path to an app config class or an error.
module = import_module(entry)
except ImportError:
# Track that importing as an app module failed. If importing as an
# app config class fails too, we'll trigger the ImportError again.
module = None
mod_path, _, cls_name = entry.rpartition('.')
# Raise the original exception when entry cannot be a path to an
# app config class.
if not mod_path:
raise
else:
try:
# If this works, the app module specifies an app config class.
entry = module.default_app_config
except AttributeError:
# Otherwise, it simply uses the default app config class.
return cls(entry, module)
else:
mod_path, _, cls_name = entry.rpartition('.')
# If we're reaching this point, we must attempt to load the app config
# class located at <mod_path>.<cls_name>
mod = import_module(mod_path)
try:
cls = getattr(mod, cls_name)
except AttributeError:
if module is None:
# If importing as an app module failed, that error probably
# contains the most informative traceback. Trigger it again.
import_module(entry)
else:
raise
# Check for obvious errors. (This check prevents duck typing, but
# it could be removed if it became a problem in practice.)
if not issubclass(cls, AppConfig):
raise ImproperlyConfigured(
"'%s' isn't a subclass of AppConfig." % entry)
# Obtain app name here rather than in AppClass.__init__ to keep
# all error checking for entries in INSTALLED_APPS in one place.
try:
app_name = cls.name
except AttributeError:
raise ImproperlyConfigured(
"'%s' must supply a name attribute." % entry)
# Ensure app_name points to a valid module.
try:
app_module = import_module(app_name)
except ImportError:
raise ImproperlyConfigured(
"Cannot import '%s'. Check that '%s.%s.name' is correct." % (
app_name, mod_path, cls_name,
)
)
# Entry is a path to an app config class.
return cls(app_name, app_module)
def get_model(self, model_name, require_ready=True):
"""
Returns the model with the given case-insensitive model_name.
Raises LookupError if no model exists with this name.
"""
if require_ready:
self.apps.check_models_ready()
else:
self.apps.check_apps_ready()
try:
return self.models[model_name.lower()]
except KeyError:
raise LookupError(
"App '%s' doesn't have a '%s' model." % (self.label, model_name))
def get_models(self, include_auto_created=False, include_swapped=False):
"""
Returns an iterable of models.
By default, the following models aren't included:
- auto-created models for many-to-many relations without
an explicit intermediate table,
- models that have been swapped out.
Set the corresponding keyword argument to True to include such models.
Keyword arguments aren't documented; they're a private API.
"""
self.apps.check_models_ready()
for model in self.models.values():
if model._meta.auto_created and not include_auto_created:
continue
if model._meta.swapped and not include_swapped:
continue
yield model
def import_models(self):
# Dictionary of models for this app, primarily maintained in the
# 'all_models' attribute of the Apps this AppConfig is attached to.
self.models = self.apps.all_models[self.label]
if module_has_submodule(self.module, MODELS_MODULE_NAME):
models_module_name = '%s.%s' % (self.name, MODELS_MODULE_NAME)
self.models_module = import_module(models_module_name)
def ready(self):
"""
Override this method in subclasses to run code when Django starts.
"""

View File

@ -1,425 +0,0 @@
import sys
import threading
import warnings
from collections import Counter, OrderedDict, defaultdict
from functools import partial
from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
from django.utils import lru_cache
from .config import AppConfig
class Apps(object):
"""
A registry that stores the configuration of installed applications.
It also keeps track of models eg. to provide reverse-relations.
"""
def __init__(self, installed_apps=()):
# installed_apps is set to None when creating the master registry
# because it cannot be populated at that point. Other registries must
# provide a list of installed apps and are populated immediately.
if installed_apps is None and hasattr(sys.modules[__name__], 'apps'):
raise RuntimeError("You must supply an installed_apps argument.")
# Mapping of app labels => model names => model classes. Every time a
# model is imported, ModelBase.__new__ calls apps.register_model which
# creates an entry in all_models. All imported models are registered,
# regardless of whether they're defined in an installed application
# and whether the registry has been populated. Since it isn't possible
# to reimport a module safely (it could reexecute initialization code)
# all_models is never overridden or reset.
self.all_models = defaultdict(OrderedDict)
# Mapping of labels to AppConfig instances for installed apps.
self.app_configs = OrderedDict()
# Stack of app_configs. Used to store the current state in
# set_available_apps and set_installed_apps.
self.stored_app_configs = []
# Whether the registry is populated.
self.apps_ready = self.models_ready = self.ready = False
# Lock for thread-safe population.
self._lock = threading.Lock()
# Maps ("app_label", "modelname") tuples to lists of functions to be
# called when the corresponding model is ready. Used by this class's
# `lazy_model_operation()` and `do_pending_operations()` methods.
self._pending_operations = defaultdict(list)
# Populate apps and models, unless it's the master registry.
if installed_apps is not None:
self.populate(installed_apps)
def populate(self, installed_apps=None):
"""
Loads application configurations and models.
This method imports each application module and then each model module.
It is thread safe and idempotent, but not reentrant.
"""
if self.ready:
return
# populate() might be called by two threads in parallel on servers
# that create threads before initializing the WSGI callable.
with self._lock:
if self.ready:
return
# app_config should be pristine, otherwise the code below won't
# guarantee that the order matches the order in INSTALLED_APPS.
if self.app_configs:
raise RuntimeError("populate() isn't reentrant")
# Phase 1: initialize app configs and import app modules.
for entry in installed_apps:
if isinstance(entry, AppConfig):
app_config = entry
else:
app_config = AppConfig.create(entry)
if app_config.label in self.app_configs:
raise ImproperlyConfigured(
"Application labels aren't unique, "
"duplicates: %s" % app_config.label)
self.app_configs[app_config.label] = app_config
app_config.apps = self
# Check for duplicate app names.
counts = Counter(
app_config.name for app_config in self.app_configs.values())
duplicates = [
name for name, count in counts.most_common() if count > 1]
if duplicates:
raise ImproperlyConfigured(
"Application names aren't unique, "
"duplicates: %s" % ", ".join(duplicates))
self.apps_ready = True
# Phase 2: import models modules.
for app_config in self.app_configs.values():
app_config.import_models()
self.clear_cache()
self.models_ready = True
# Phase 3: run ready() methods of app configs.
for app_config in self.get_app_configs():
app_config.ready()
self.ready = True
def check_apps_ready(self):
"""
Raises an exception if all apps haven't been imported yet.
"""
if not self.apps_ready:
raise AppRegistryNotReady("Apps aren't loaded yet.")
def check_models_ready(self):
"""
Raises an exception if all models haven't been imported yet.
"""
if not self.models_ready:
raise AppRegistryNotReady("Models aren't loaded yet.")
def get_app_configs(self):
"""
Imports applications and returns an iterable of app configs.
"""
self.check_apps_ready()
return self.app_configs.values()
def get_app_config(self, app_label):
"""
Imports applications and returns an app config for the given label.
Raises LookupError if no application exists with this label.
"""
self.check_apps_ready()
try:
return self.app_configs[app_label]
except KeyError:
message = "No installed app with label '%s'." % app_label
for app_config in self.get_app_configs():
if app_config.name == app_label:
message += " Did you mean '%s'?" % app_config.label
break
raise LookupError(message)
# This method is performance-critical at least for Django's test suite.
@lru_cache.lru_cache(maxsize=None)
def get_models(self, include_auto_created=False, include_swapped=False):
"""
Returns a list of all installed models.
By default, the following models aren't included:
- auto-created models for many-to-many relations without
an explicit intermediate table,
- models that have been swapped out.
Set the corresponding keyword argument to True to include such models.
"""
self.check_models_ready()
result = []
for app_config in self.app_configs.values():
result.extend(list(app_config.get_models(include_auto_created, include_swapped)))
return result
def get_model(self, app_label, model_name=None, require_ready=True):
"""
Returns the model matching the given app_label and model_name.
As a shortcut, this function also accepts a single argument in the
form <app_label>.<model_name>.
model_name is case-insensitive.
Raises LookupError if no application exists with this label, or no
model exists with this name in the application. Raises ValueError if
called with a single argument that doesn't contain exactly one dot.
"""
if require_ready:
self.check_models_ready()
else:
self.check_apps_ready()
if model_name is None:
app_label, model_name = app_label.split('.')
app_config = self.get_app_config(app_label)
if not require_ready and app_config.models is None:
app_config.import_models()
return app_config.get_model(model_name, require_ready=require_ready)
def register_model(self, app_label, model):
# Since this method is called when models are imported, it cannot
# perform imports because of the risk of import loops. It mustn't
# call get_app_config().
model_name = model._meta.model_name
app_models = self.all_models[app_label]
if model_name in app_models:
if (model.__name__ == app_models[model_name].__name__ and
model.__module__ == app_models[model_name].__module__):
warnings.warn(
"Model '%s.%s' was already registered. "
"Reloading models is not advised as it can lead to inconsistencies, "
"most notably with related models." % (app_label, model_name),
RuntimeWarning, stacklevel=2)
else:
raise RuntimeError(
"Conflicting '%s' models in application '%s': %s and %s." %
(model_name, app_label, app_models[model_name], model))
app_models[model_name] = model
self.do_pending_operations(model)
self.clear_cache()
def is_installed(self, app_name):
"""
Checks whether an application with this name exists in the registry.
app_name is the full name of the app eg. 'django.contrib.admin'.
"""
self.check_apps_ready()
return any(ac.name == app_name for ac in self.app_configs.values())
def get_containing_app_config(self, object_name):
"""
Look for an app config containing a given object.
object_name is the dotted Python path to the object.
Returns the app config for the inner application in case of nesting.
Returns None if the object isn't in any registered app config.
"""
self.check_apps_ready()
candidates = []
for app_config in self.app_configs.values():
if object_name.startswith(app_config.name):
subpath = object_name[len(app_config.name):]
if subpath == '' or subpath[0] == '.':
candidates.append(app_config)
if candidates:
return sorted(candidates, key=lambda ac: -len(ac.name))[0]
def get_registered_model(self, app_label, model_name):
"""
Similar to get_model(), but doesn't require that an app exists with
the given app_label.
It's safe to call this method at import time, even while the registry
is being populated.
"""
model = self.all_models[app_label].get(model_name.lower())
if model is None:
raise LookupError(
"Model '%s.%s' not registered." % (app_label, model_name))
return model
@lru_cache.lru_cache(maxsize=None)
def get_swappable_settings_name(self, to_string):
"""
For a given model string (e.g. "auth.User"), return the name of the
corresponding settings name if it refers to a swappable model. If the
referred model is not swappable, return None.
This method is decorated with lru_cache because it's performance
critical when it comes to migrations. Since the swappable settings don't
change after Django has loaded the settings, there is no reason to get
the respective settings attribute over and over again.
"""
for model in self.get_models(include_swapped=True):
swapped = model._meta.swapped
# Is this model swapped out for the model given by to_string?
if swapped and swapped == to_string:
return model._meta.swappable
# Is this model swappable and the one given by to_string?
if model._meta.swappable and model._meta.label == to_string:
return model._meta.swappable
return None
def set_available_apps(self, available):
"""
Restricts the set of installed apps used by get_app_config[s].
available must be an iterable of application names.
set_available_apps() must be balanced with unset_available_apps().
Primarily used for performance optimization in TransactionTestCase.
This method is safe is the sense that it doesn't trigger any imports.
"""
available = set(available)
installed = set(app_config.name for app_config in self.get_app_configs())
if not available.issubset(installed):
raise ValueError(
"Available apps isn't a subset of installed apps, extra apps: %s"
% ", ".join(available - installed)
)
self.stored_app_configs.append(self.app_configs)
self.app_configs = OrderedDict(
(label, app_config)
for label, app_config in self.app_configs.items()
if app_config.name in available)
self.clear_cache()
def unset_available_apps(self):
"""
Cancels a previous call to set_available_apps().
"""
self.app_configs = self.stored_app_configs.pop()
self.clear_cache()
def set_installed_apps(self, installed):
"""
Enables a different set of installed apps for get_app_config[s].
installed must be an iterable in the same format as INSTALLED_APPS.
set_installed_apps() must be balanced with unset_installed_apps(),
even if it exits with an exception.
Primarily used as a receiver of the setting_changed signal in tests.
This method may trigger new imports, which may add new models to the
registry of all imported models. They will stay in the registry even
after unset_installed_apps(). Since it isn't possible to replay
imports safely (eg. that could lead to registering listeners twice),
models are registered when they're imported and never removed.
"""
if not self.ready:
raise AppRegistryNotReady("App registry isn't ready yet.")
self.stored_app_configs.append(self.app_configs)
self.app_configs = OrderedDict()
self.apps_ready = self.models_ready = self.ready = False
self.clear_cache()
self.populate(installed)
def unset_installed_apps(self):
"""
Cancels a previous call to set_installed_apps().
"""
self.app_configs = self.stored_app_configs.pop()
self.apps_ready = self.models_ready = self.ready = True
self.clear_cache()
def clear_cache(self):
"""
Clears all internal caches, for methods that alter the app registry.
This is mostly used in tests.
"""
# Call expire cache on each model. This will purge
# the relation tree and the fields cache.
self.get_models.cache_clear()
if self.ready:
# Circumvent self.get_models() to prevent that the cache is refilled.
# This particularly prevents that an empty value is cached while cloning.
for app_config in self.app_configs.values():
for model in app_config.get_models(include_auto_created=True):
model._meta._expire_cache()
def lazy_model_operation(self, function, *model_keys):
"""
Take a function and a number of ("app_label", "modelname") tuples, and
when all the corresponding models have been imported and registered,
call the function with the model classes as its arguments.
The function passed to this method must accept exactly n models as
arguments, where n=len(model_keys).
"""
# Base case: no arguments, just execute the function.
if not model_keys:
function()
# Recursive case: take the head of model_keys, wait for the
# corresponding model class to be imported and registered, then apply
# that argument to the supplied function. Pass the resulting partial
# to lazy_model_operation() along with the remaining model args and
# repeat until all models are loaded and all arguments are applied.
else:
next_model, more_models = model_keys[0], model_keys[1:]
# This will be executed after the class corresponding to next_model
# has been imported and registered. The `func` attribute provides
# duck-type compatibility with partials.
def apply_next_model(model):
next_function = partial(apply_next_model.func, model)
self.lazy_model_operation(next_function, *more_models)
apply_next_model.func = function
# If the model has already been imported and registered, partially
# apply it to the function now. If not, add it to the list of
# pending operations for the model, where it will be executed with
# the model class as its sole argument once the model is ready.
try:
model_class = self.get_registered_model(*next_model)
except LookupError:
self._pending_operations[next_model].append(apply_next_model)
else:
apply_next_model(model_class)
def do_pending_operations(self, model):
"""
Take a newly-prepared model and pass it to each function waiting for
it. This is called at the very end of `Apps.register_model()`.
"""
key = model._meta.app_label, model._meta.model_name
for function in self._pending_operations.pop(key, []):
function(model)
apps = Apps(installed_apps=None)

19
django/bin/daily_cleanup.py Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env python
"""
Daily cleanup job.
Can be run as a cronjob to clean out old data from the database (only expired
sessions at the moment).
"""
import warnings
from django.core import management
if __name__ == "__main__":
warnings.warn(
"The `daily_cleanup` script has been deprecated "
"in favor of `django-admin.py clearsessions`.",
DeprecationWarning)
management.call_command('clearsessions')

10
django/bin/django-2to3.py Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python
# This works exactly like 2to3, except that it uses Django's fixers rather
# than 2to3's built-in fixers.
import sys
from lib2to3.main import main
sys.exit(main("django.utils.2to3_fixes"))

View File

@ -0,0 +1,37 @@
#!/usr/bin/env python
"""
gather_profile_stats.py /path/to/dir/of/profiles
Note that the aggregated profiles must be read with pstats.Stats, not
hotshot.stats (the formats are incompatible)
"""
from hotshot import stats
import os
import pstats
import sys
def gather_stats(p):
profiles = {}
for f in os.listdir(p):
if f.endswith('.agg.prof'):
path = f[:-9]
prof = pstats.Stats(os.path.join(p, f))
elif f.endswith('.prof'):
bits = f.split('.')
path = ".".join(bits[:-3])
prof = stats.load(os.path.join(p, f))
else:
continue
print("Processing %s" % f)
if path in profiles:
profiles[path].add(prof)
else:
profiles[path] = prof
os.unlink(os.path.join(p, f))
for (path, prof) in profiles.items():
prof.dump_stats(os.path.join(p, "%s.agg.prof" % path))
if __name__ == '__main__':
gather_stats(sys.argv[1])

29
django/bin/unique-messages.py Executable file
View File

@ -0,0 +1,29 @@
#!/usr/bin/env python
import os
import sys
def unique_messages():
basedir = None
if os.path.isdir(os.path.join('conf', 'locale')):
basedir = os.path.abspath(os.path.join('conf', 'locale'))
elif os.path.isdir('locale'):
basedir = os.path.abspath('locale')
else:
print("This script should be run from the Django Git tree or your project or app tree.")
sys.exit(1)
for (dirpath, dirnames, filenames) in os.walk(basedir):
for f in filenames:
if f.endswith('.po'):
sys.stderr.write('processing file %s in %s\n' % (f, dirpath))
pf = os.path.splitext(os.path.join(dirpath, f))[0]
cmd = 'msguniq "%s.po"' % pf
stdout = os.popen(cmd)
msg = stdout.read()
with open('%s.po' % pf, 'w') as fp:
fp.write(msg)
if __name__ == "__main__":
unique_messages()

View File

@ -6,13 +6,18 @@ variable, and then from django.conf.global_settings; see the global settings fil
a list of all possible variables.
"""
import importlib
import logging
import os
import time
import sys
import time # Needed for Windows
import warnings
from django.conf import global_settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.functional import LazyObject, empty
from django.utils import importlib
from django.utils.module_loading import import_by_path
from django.utils import six
ENVIRONMENT_VARIABLE = "DJANGO_SETTINGS_MODULE"
@ -29,8 +34,11 @@ class LazySettings(LazyObject):
is used the first time we need any settings at all, if the user has not
previously configured the settings manually.
"""
settings_module = os.environ.get(ENVIRONMENT_VARIABLE)
if not settings_module:
try:
settings_module = os.environ[ENVIRONMENT_VARIABLE]
if not settings_module: # If it's set but is an empty string.
raise KeyError
except KeyError:
desc = ("setting %s" % name) if name else "settings"
raise ImproperlyConfigured(
"Requested %s, but settings are not configured. "
@ -39,42 +47,37 @@ class LazySettings(LazyObject):
% (desc, ENVIRONMENT_VARIABLE))
self._wrapped = Settings(settings_module)
def __repr__(self):
# Hardcode the class name as otherwise it yields 'Settings'.
if self._wrapped is empty:
return '<LazySettings [Unevaluated]>'
return '<LazySettings "%(settings_module)s">' % {
'settings_module': self._wrapped.SETTINGS_MODULE,
}
self._configure_logging()
def __getattr__(self, name):
"""
Return the value of a setting and cache it in self.__dict__.
"""
if self._wrapped is empty:
self._setup(name)
val = getattr(self._wrapped, name)
self.__dict__[name] = val
return val
return getattr(self._wrapped, name)
def __setattr__(self, name, value):
def _configure_logging(self):
"""
Set the value of setting. Clear all cached values if _wrapped changes
(@override_settings does this) or clear single values when set.
Setup logging from LOGGING_CONFIG and LOGGING settings.
"""
if name == '_wrapped':
self.__dict__.clear()
else:
self.__dict__.pop(name, None)
super(LazySettings, self).__setattr__(name, value)
if not sys.warnoptions:
try:
# Route warnings through python logging
logging.captureWarnings(True)
# Allow DeprecationWarnings through the warnings filters
warnings.simplefilter("default", DeprecationWarning)
except AttributeError:
# No captureWarnings on Python 2.6, DeprecationWarnings are on anyway
pass
def __delattr__(self, name):
"""
Delete a setting and clear it from cache if needed.
"""
super(LazySettings, self).__delattr__(name)
self.__dict__.pop(name, None)
if self.LOGGING_CONFIG:
from django.utils.log import DEFAULT_LOGGING
# First find the logging configuration function ...
logging_config_func = import_by_path(self.LOGGING_CONFIG)
logging_config_func(DEFAULT_LOGGING)
# ... then invoke it with the logging settings
if self.LOGGING:
logging_config_func(self.LOGGING)
def configure(self, default_settings=global_settings, **options):
"""
@ -88,6 +91,7 @@ class LazySettings(LazyObject):
for name, value in options.items():
setattr(holder, name, value)
self._wrapped = holder
self._configure_logging()
@property
def configured(self):
@ -97,33 +101,51 @@ class LazySettings(LazyObject):
return self._wrapped is not empty
class Settings(object):
class BaseSettings(object):
"""
Common logic for settings whether set by a module or by the user.
"""
def __setattr__(self, name, value):
if name in ("MEDIA_URL", "STATIC_URL") and value and not value.endswith('/'):
raise ImproperlyConfigured("If set, %s must end with a slash" % name)
elif name == "ALLOWED_INCLUDE_ROOTS" and isinstance(value, six.string_types):
raise ValueError("The ALLOWED_INCLUDE_ROOTS setting must be set "
"to a tuple, not a string.")
object.__setattr__(self, name, value)
class Settings(BaseSettings):
def __init__(self, settings_module):
# update this dict from global settings (but only for ALL_CAPS settings)
for setting in dir(global_settings):
if setting.isupper():
if setting == setting.upper():
setattr(self, setting, getattr(global_settings, setting))
# store the settings module in case someone later cares
self.SETTINGS_MODULE = settings_module
mod = importlib.import_module(self.SETTINGS_MODULE)
try:
mod = importlib.import_module(self.SETTINGS_MODULE)
except ImportError as e:
raise ImportError(
"Could not import settings '%s' (Is it on sys.path? Is there an import error in the settings file?): %s"
% (self.SETTINGS_MODULE, e)
)
# Settings that should be converted into tuples if they're mistakenly entered
# as strings.
tuple_settings = ("INSTALLED_APPS", "TEMPLATE_DIRS")
tuple_settings = (
"INSTALLED_APPS",
"TEMPLATE_DIRS",
"LOCALE_PATHS",
)
self._explicit_settings = set()
for setting in dir(mod):
if setting.isupper():
if setting == setting.upper():
setting_value = getattr(mod, setting)
if (setting in tuple_settings and
not isinstance(setting_value, (list, tuple))):
raise ImproperlyConfigured("The %s setting must be a list or a tuple. " % setting)
if setting in tuple_settings and \
isinstance(setting_value, six.string_types):
warnings.warn("The %s setting must be a tuple. Please fix your "
"settings, as auto-correction is now deprecated." % setting,
DeprecationWarning, stacklevel=2)
setting_value = (setting_value,) # In case the user forgot the comma.
setattr(self, setting, setting_value)
self._explicit_settings.add(setting)
if not self.SECRET_KEY:
raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
@ -140,17 +162,8 @@ class Settings(object):
os.environ['TZ'] = self.TIME_ZONE
time.tzset()
def is_overridden(self, setting):
return setting in self._explicit_settings
def __repr__(self):
return '<%(cls)s "%(settings_module)s">' % {
'cls': self.__class__.__name__,
'settings_module': self.SETTINGS_MODULE,
}
class UserSettingsHolder(object):
class UserSettingsHolder(BaseSettings):
"""
Holder for user configured settings.
"""
@ -173,29 +186,13 @@ class UserSettingsHolder(object):
def __setattr__(self, name, value):
self._deleted.discard(name)
super(UserSettingsHolder, self).__setattr__(name, value)
return super(UserSettingsHolder, self).__setattr__(name, value)
def __delattr__(self, name):
self._deleted.add(name)
if hasattr(self, name):
super(UserSettingsHolder, self).__delattr__(name)
return super(UserSettingsHolder, self).__delattr__(name)
def __dir__(self):
return sorted(
s for s in list(self.__dict__) + dir(self.default_settings)
if s not in self._deleted
)
def is_overridden(self, setting):
deleted = (setting in self._deleted)
set_locally = (setting in self.__dict__)
set_on_default = getattr(self.default_settings, 'is_overridden', lambda s: False)(setting)
return (deleted or set_locally or set_on_default)
def __repr__(self):
return '<%(cls)s>' % {
'cls': self.__class__.__name__,
}
return list(self.__dict__) + dir(self.default_settings)
settings = LazySettings()

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -1,3 +0,0 @@
{{ unicode_literals }}from django.contrib import admin
# Register your models here.

View File

@ -1,5 +0,0 @@
{{ unicode_literals }}from django.apps import AppConfig
class {{ camel_case_app_name }}Config(AppConfig):
name = '{{ app_name }}'

View File

@ -0,0 +1,3 @@
from django.db import models
# Create your models here.

View File

@ -1,3 +0,0 @@
{{ unicode_literals }}from django.db import models
# Create your models here.

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@ -1,3 +0,0 @@
{{ unicode_literals }}from django.test import TestCase
# Create your tests here.

View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

View File

@ -1,3 +0,0 @@
{{ unicode_literals }}from django.shortcuts import render
# Create your views here.

View File

@ -1,48 +1,40 @@
# -*- coding: utf-8 -*-
"""
Default Django settings. Override these with settings in the module pointed to
by the DJANGO_SETTINGS_MODULE environment variable.
"""
from __future__ import unicode_literals
# Default Django settings. Override these with settings in the module
# pointed-to by the DJANGO_SETTINGS_MODULE environment variable.
# This is defined here as a do-nothing function because we can't import
# django.utils.translation -- that module depends on the settings.
def gettext_noop(s):
return s
gettext_noop = lambda s: s
####################
# CORE #
####################
DEBUG = False
TEMPLATE_DEBUG = False
# Whether the framework should propagate raw exceptions rather than catching
# them. This is useful under some testing situations and should never be used
# on a live site.
DEBUG_PROPAGATE_EXCEPTIONS = False
# Whether to use the "ETag" header. This saves bandwidth but slows down performance.
# Deprecated (RemovedInDjango21Warning) in favor of ConditionalGetMiddleware
# which sets the ETag regardless of this setting.
# Whether to use the "Etag" header. This saves bandwidth but slows down performance.
USE_ETAGS = False
# People who get code error notifications.
# In the format [('Full Name', 'email@example.com'), ('Full Name', 'anotheremail@example.com')]
ADMINS = []
# In the format (('Full Name', 'email@example.com'), ('Full Name', 'anotheremail@example.com'))
ADMINS = ()
# List of IP addresses, as strings, that:
# Tuple of IP addresses, as strings, that:
# * See debug comments, when DEBUG is true
# * Receive x-headers
INTERNAL_IPS = []
INTERNAL_IPS = ()
# Hosts/domain names that are valid for this site.
# "*" matches anything, ".example.com" matches example.com and all subdomains
ALLOWED_HOSTS = []
# Local time zone for this installation. All choices can be found here:
# https://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name (although not all
# systems may support all possibilities). When USE_TZ is True, this is
# interpreted as the default user time zone.
TIME_ZONE = 'America/Chicago'
@ -55,10 +47,9 @@ USE_TZ = False
LANGUAGE_CODE = 'en-us'
# Languages we provide translations for, out of the box.
LANGUAGES = [
LANGUAGES = (
('af', gettext_noop('Afrikaans')),
('ar', gettext_noop('Arabic')),
('ast', gettext_noop('Asturian')),
('az', gettext_noop('Azerbaijani')),
('bg', gettext_noop('Bulgarian')),
('be', gettext_noop('Belarusian')),
@ -70,15 +61,12 @@ LANGUAGES = [
('cy', gettext_noop('Welsh')),
('da', gettext_noop('Danish')),
('de', gettext_noop('German')),
('dsb', gettext_noop('Lower Sorbian')),
('el', gettext_noop('Greek')),
('en', gettext_noop('English')),
('en-au', gettext_noop('Australian English')),
('en-gb', gettext_noop('British English')),
('eo', gettext_noop('Esperanto')),
('es', gettext_noop('Spanish')),
('es-ar', gettext_noop('Argentinian Spanish')),
('es-co', gettext_noop('Colombian Spanish')),
('es-mx', gettext_noop('Mexican Spanish')),
('es-ni', gettext_noop('Nicaraguan Spanish')),
('es-ve', gettext_noop('Venezuelan Spanish')),
@ -87,18 +75,15 @@ LANGUAGES = [
('fa', gettext_noop('Persian')),
('fi', gettext_noop('Finnish')),
('fr', gettext_noop('French')),
('fy', gettext_noop('Frisian')),
('fy-nl', gettext_noop('Frisian')),
('ga', gettext_noop('Irish')),
('gd', gettext_noop('Scottish Gaelic')),
('gl', gettext_noop('Galician')),
('he', gettext_noop('Hebrew')),
('hi', gettext_noop('Hindi')),
('hr', gettext_noop('Croatian')),
('hsb', gettext_noop('Upper Sorbian')),
('hu', gettext_noop('Hungarian')),
('ia', gettext_noop('Interlingua')),
('id', gettext_noop('Indonesian')),
('io', gettext_noop('Ido')),
('is', gettext_noop('Icelandic')),
('it', gettext_noop('Italian')),
('ja', gettext_noop('Japanese')),
@ -113,9 +98,8 @@ LANGUAGES = [
('mk', gettext_noop('Macedonian')),
('ml', gettext_noop('Malayalam')),
('mn', gettext_noop('Mongolian')),
('mr', gettext_noop('Marathi')),
('my', gettext_noop('Burmese')),
('nb', gettext_noop('Norwegian Bokmål')),
('nb', gettext_noop('Norwegian Bokmal')),
('ne', gettext_noop('Nepali')),
('nl', gettext_noop('Dutch')),
('nn', gettext_noop('Norwegian Nynorsk')),
@ -142,24 +126,18 @@ LANGUAGES = [
('uk', gettext_noop('Ukrainian')),
('ur', gettext_noop('Urdu')),
('vi', gettext_noop('Vietnamese')),
('zh-hans', gettext_noop('Simplified Chinese')),
('zh-hant', gettext_noop('Traditional Chinese')),
]
('zh-cn', gettext_noop('Simplified Chinese')),
('zh-tw', gettext_noop('Traditional Chinese')),
)
# Languages using BiDi (right-to-left) layout
LANGUAGES_BIDI = ["he", "ar", "fa", "ur"]
LANGUAGES_BIDI = ("he", "ar", "fa", "ur")
# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True
LOCALE_PATHS = []
# Settings for language cookie
LOCALE_PATHS = ()
LANGUAGE_COOKIE_NAME = 'django_language'
LANGUAGE_COOKIE_AGE = None
LANGUAGE_COOKIE_DOMAIN = None
LANGUAGE_COOKIE_PATH = '/'
# If you set this to True, Django will format dates, numbers and calendars
# according to user current locale.
@ -181,6 +159,9 @@ FILE_CHARSET = 'utf-8'
# Email address that error messages come from.
SERVER_EMAIL = 'root@localhost'
# Whether to send broken-link emails. Deprecated, must be removed in 1.8.
SEND_BROKEN_LINK_EMAILS = False
# Database connection info. If left empty, will default to the dummy backend.
DATABASES = {}
@ -199,25 +180,42 @@ EMAIL_HOST = 'localhost'
# Port for sending email.
EMAIL_PORT = 25
# Whether to send SMTP 'Date' header in the local time zone or in UTC.
EMAIL_USE_LOCALTIME = False
# Optional SMTP authentication information for EMAIL_HOST.
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_USE_TLS = False
EMAIL_USE_SSL = False
EMAIL_SSL_CERTFILE = None
EMAIL_SSL_KEYFILE = None
EMAIL_TIMEOUT = None
# List of strings representing installed apps.
INSTALLED_APPS = []
INSTALLED_APPS = ()
TEMPLATES = []
# List of locations of the template source files, in search order.
TEMPLATE_DIRS = ()
# Default form rendering class.
FORM_RENDERER = 'django.forms.renderers.DjangoTemplates'
# List of callables that know how to import templates from various sources.
# See the comments in django/core/template/loader.py for interface
# documentation.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)
# List of processors used by RequestContext to populate the context.
# Each one should be a callable that takes the request object as its
# only parameter and returns a dictionary to add to the context.
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.core.context_processors.tz',
# 'django.core.context_processors.request',
'django.contrib.messages.context_processors.messages',
)
# Output to use in template system for invalid (e.g. misspelled) variables.
TEMPLATE_STRING_IF_INVALID = ''
# Default email address to use for various automated correspondence from
# the site managers.
@ -240,27 +238,36 @@ FORCE_SCRIPT_NAME = None
# that are not allowed to visit any page, systemwide. Use this for bad
# robots/crawlers. Here are a few examples:
# import re
# DISALLOWED_USER_AGENTS = [
# DISALLOWED_USER_AGENTS = (
# re.compile(r'^NaverBot.*'),
# re.compile(r'^EmailSiphon.*'),
# re.compile(r'^SiteSucker.*'),
# re.compile(r'^sohu-search'),
# ]
DISALLOWED_USER_AGENTS = []
# re.compile(r'^sohu-search')
# )
DISALLOWED_USER_AGENTS = ()
ABSOLUTE_URL_OVERRIDES = {}
# Tuple of strings representing allowed prefixes for the {% ssi %} tag.
# Example: ('/home/html', '/var/www')
ALLOWED_INCLUDE_ROOTS = ()
# If this is a admin settings module, this should be a list of
# settings modules (in the format 'foo.bar.baz') for which this admin
# is an admin.
ADMIN_FOR = ()
# List of compiled regular expression objects representing URLs that need not
# be reported by BrokenLinkEmailsMiddleware. Here are a few examples:
# import re
# IGNORABLE_404_URLS = [
# IGNORABLE_404_URLS = (
# re.compile(r'^/apple-touch-icon.*\.png$'),
# re.compile(r'^/favicon.ico$'),
# re.compile(r'^/robots.txt$'),
# re.compile(r'^/phpmyadmin/'),
# re.compile(r'^/favicon.ico$),
# re.compile(r'^/robots.txt$),
# re.compile(r'^/phpmyadmin/),
# re.compile(r'\.(cgi|php|pl)$'),
# ]
IGNORABLE_404_URLS = []
# )
IGNORABLE_404_URLS = ()
# A secret key for this particular Django installation. Used in secret-key
# hashing algorithms. Set this in your settings, or Django will complain
@ -287,26 +294,14 @@ STATIC_ROOT = None
STATIC_URL = None
# List of upload handler classes to be applied in order.
FILE_UPLOAD_HANDLERS = [
FILE_UPLOAD_HANDLERS = (
'django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler',
]
)
# Maximum size, in bytes, of a request before it will be streamed to the
# file system instead of into memory.
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
# Maximum size in bytes of request data (excluding file uploads) that will be
# read before a SuspiciousOperation (RequestDataTooBig) is raised.
DATA_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
# Maximum number of GET/POST parameters that will be read before a
# SuspiciousOperation (TooManyFieldsSent) is raised.
DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
# Maximum number of files encoded in a multipart upload that will be read
# before a SuspiciousOperation (TooManyFilesSent) is raised.
DATA_UPLOAD_MAX_NUMBER_FILES = 100
FILE_UPLOAD_MAX_MEMORY_SIZE = 2621440 # i.e. 2.5 MB
# Directory in which upload streamed files will be temporarily saved. A value of
# `None` will make Django use the operating system's default temporary directory
@ -314,14 +309,9 @@ DATA_UPLOAD_MAX_NUMBER_FILES = 100
FILE_UPLOAD_TEMP_DIR = None
# The numeric mode to set newly-uploaded files to. The value should be a mode
# you'd pass directly to os.chmod; see https://docs.python.org/3/library/os.html#files-and-directories.
# you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html.
FILE_UPLOAD_PERMISSIONS = None
# The numeric mode to assign to newly-created directories, when uploading files.
# The value should be a mode as you'd pass to os.chmod;
# see https://docs.python.org/3/library/os.html#files-and-directories.
FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
# Python module path where user will place custom format definition.
# The directory where this setting is pointing should contain subdirectories
# named as the locales, containing a formats.py file
@ -363,30 +353,30 @@ SHORT_DATETIME_FORMAT = 'm/d/Y P'
# See all available format string here:
# http://docs.python.org/library/datetime.html#strftime-behavior
# * Note that these format strings are different from the ones to display dates
DATE_INPUT_FORMATS = [
'%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
'%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
'%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
'%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
'%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
]
DATE_INPUT_FORMATS = (
'%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
'%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
'%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
'%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
'%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
)
# Default formats to be used when parsing times from input boxes, in order
# See all available format string here:
# http://docs.python.org/library/datetime.html#strftime-behavior
# * Note that these format strings are different from the ones to display dates
TIME_INPUT_FORMATS = [
TIME_INPUT_FORMATS = (
'%H:%M:%S', # '14:30:59'
'%H:%M:%S.%f', # '14:30:59.000200'
'%H:%M', # '14:30'
]
)
# Default formats to be used when parsing dates and times from input boxes,
# in order
# See all available format string here:
# http://docs.python.org/library/datetime.html#strftime-behavior
# * Note that these format strings are different from the ones to display dates
DATETIME_INPUT_FORMATS = [
DATETIME_INPUT_FORMATS = (
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
@ -399,7 +389,7 @@ DATETIME_INPUT_FORMATS = [
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
'%m/%d/%y %H:%M', # '10/25/06 14:30'
'%m/%d/%y', # '10/25/06'
]
)
# First day of week, to be used on calendars
# 0 means Sunday, 1 means Monday...
@ -418,6 +408,10 @@ NUMBER_GROUPING = 0
# Thousand separator symbol
THOUSAND_SEPARATOR = ','
# Do you want to manage transactions manually?
# Hint: you really don't!
TRANSACTIONS_MANAGED = False
# The tablespaces to use for each model when not specified otherwise.
DEFAULT_TABLESPACE = ''
DEFAULT_INDEX_TABLESPACE = ''
@ -426,10 +420,9 @@ DEFAULT_INDEX_TABLESPACE = ''
X_FRAME_OPTIONS = 'SAMEORIGIN'
USE_X_FORWARDED_HOST = False
USE_X_FORWARDED_PORT = False
# The Python dotted path to the WSGI application that Django's internal server
# (runserver) will use. If `None`, the return value of
# The Python dotted path to the WSGI application that Django's internal servers
# (runserver, runfcgi) will use. If `None`, the return value of
# 'django.core.wsgi.get_wsgi_application' is used, thus preserving the same
# behavior as previous versions of Django. Otherwise this should point to an
# actual WSGI application object.
@ -448,45 +441,35 @@ SECURE_PROXY_SSL_HEADER = None
# MIDDLEWARE #
##############
# List of middleware to use. Order is important; in the request phase, these
# middleware will be applied in the order given, and in the response
# phase the middleware will be applied in reverse order.
MIDDLEWARE_CLASSES = [
# List of middleware classes to use. Order is important; in the request phase,
# this middleware classes will be applied in the order given, and in the
# response phase the middleware will be applied in reverse order.
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
]
MIDDLEWARE = None
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# 'django.middleware.http.ConditionalGetMiddleware',
# 'django.middleware.gzip.GZipMiddleware',
)
############
# SESSIONS #
############
# Cache to store session data if using the cache session backend.
SESSION_CACHE_ALIAS = 'default'
# Cookie name. This can be whatever you want.
SESSION_COOKIE_NAME = 'sessionid'
# Age of cookie, in seconds (default: 2 weeks).
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2
# A string like ".example.com", or None for standard domain cookie.
SESSION_COOKIE_DOMAIN = None
# Whether the session cookie should be secure (https:// only).
SESSION_COOKIE_SECURE = False
# The path of the session cookie.
SESSION_COOKIE_PATH = '/'
# Whether to use the non-RFC standard httpOnly flag (IE, FF3+, others)
SESSION_COOKIE_HTTPONLY = True
# Whether to save the session data on every request.
SESSION_SAVE_EVERY_REQUEST = False
# Whether a user's session cookie expires when the Web browser is closed.
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
# The module to store session data
SESSION_ENGINE = 'django.contrib.sessions.backends.db'
# Directory to store session files if using the file session module. If None,
# the backend will use a sensible default.
SESSION_FILE_PATH = None
# class to serialize session data
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer'
SESSION_CACHE_ALIAS = 'default' # Cache to store session data if using the cache session backend.
SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want.
SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks).
SESSION_COOKIE_DOMAIN = None # A string like ".example.com", or None for standard domain cookie.
SESSION_COOKIE_SECURE = False # Whether the session cookie should be secure (https:// only).
SESSION_COOKIE_PATH = '/' # The path of the session cookie.
SESSION_COOKIE_HTTPONLY = True # Whether to use the non-RFC standard httpOnly flag (IE, FF3+, others)
SESSION_SAVE_EVERY_REQUEST = False # Whether to save the session data on every request.
SESSION_EXPIRE_AT_BROWSER_CLOSE = False # Whether a user's session cookie expires when the Web browser is closed.
SESSION_ENGINE = 'django.contrib.sessions.backends.db' # The module to store session data
SESSION_FILE_PATH = None # Directory to store session files if using the file session module. If None, the backend will use a sensible default.
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.JSONSerializer' # class to serialize session data
#########
# CACHE #
@ -502,19 +485,29 @@ CACHE_MIDDLEWARE_KEY_PREFIX = ''
CACHE_MIDDLEWARE_SECONDS = 600
CACHE_MIDDLEWARE_ALIAS = 'default'
####################
# COMMENTS #
####################
COMMENTS_ALLOW_PROFANITIES = False
# The profanities that will trigger a validation error in
# CommentDetailsForm.clean_comment. All of these should be in lowercase.
PROFANITIES_LIST = ()
##################
# AUTHENTICATION #
##################
AUTH_USER_MODEL = 'auth.User'
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend']
AUTHENTICATION_BACKENDS = ('django.contrib.auth.backends.ModelBackend',)
LOGIN_URL = '/accounts/login/'
LOGIN_REDIRECT_URL = '/accounts/profile/'
LOGOUT_URL = '/accounts/logout/'
LOGOUT_REDIRECT_URL = None
LOGIN_REDIRECT_URL = '/accounts/profile/'
# The number of days a password reset link is valid for
PASSWORD_RESET_TIMEOUT_DAYS = 3
@ -522,15 +515,17 @@ PASSWORD_RESET_TIMEOUT_DAYS = 3
# the first hasher in this list is the preferred algorithm. any
# password using different algorithms will be converted automatically
# upon login
PASSWORD_HASHERS = [
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
'django.contrib.auth.hashers.Argon2PasswordHasher',
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
'django.contrib.auth.hashers.BCryptPasswordHasher',
]
AUTH_PASSWORD_VALIDATORS = []
'django.contrib.auth.hashers.SHA1PasswordHasher',
'django.contrib.auth.hashers.MD5PasswordHasher',
'django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher',
'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher',
'django.contrib.auth.hashers.CryptPasswordHasher',
)
###########
# SIGNING #
@ -548,14 +543,10 @@ CSRF_FAILURE_VIEW = 'django.views.csrf.csrf_failure'
# Settings for CSRF cookie.
CSRF_COOKIE_NAME = 'csrftoken'
CSRF_COOKIE_AGE = 60 * 60 * 24 * 7 * 52
CSRF_COOKIE_DOMAIN = None
CSRF_COOKIE_PATH = '/'
CSRF_COOKIE_SECURE = False
CSRF_COOKIE_HTTPONLY = False
CSRF_HEADER_NAME = 'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS = []
CSRF_USE_SESSIONS = False
############
# MESSAGES #
@ -572,7 +563,7 @@ MESSAGE_STORAGE = 'django.contrib.messages.storage.fallback.FallbackStorage'
###########
# The callable to use to configure logging
LOGGING_CONFIG = 'logging.config.dictConfig'
LOGGING_CONFIG = 'django.utils.log.dictConfig'
# Custom logging configuration.
LOGGING = {}
@ -588,60 +579,27 @@ DEFAULT_EXCEPTION_REPORTER_FILTER = 'django.views.debug.SafeExceptionReporterFil
# The name of the class to use to run the test suite
TEST_RUNNER = 'django.test.runner.DiscoverRunner'
# Apps that don't need to be serialized at test database creation time
# (only apps with migrations are to start with)
TEST_NON_SERIALIZED_APPS = []
############
# FIXTURES #
############
# The list of directories to search for fixtures
FIXTURE_DIRS = []
FIXTURE_DIRS = ()
###############
# STATICFILES #
###############
# A list of locations of additional static files
STATICFILES_DIRS = []
STATICFILES_DIRS = ()
# The default file storage backend used during the build process
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = [
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
]
##############
# MIGRATIONS #
##############
# Migration module overrides for apps, by app label.
MIGRATION_MODULES = {}
#################
# SYSTEM CHECKS #
#################
# List of all issues generated by system checks that should be silenced. Light
# issues like warnings, infos or debugs will not generate a message. Silencing
# serious issues like errors and criticals does not result in hiding the
# message, but Django will not stop you from e.g. running server.
SILENCED_SYSTEM_CHECKS = []
#######################
# SECURITY MIDDLEWARE #
#######################
SECURE_BROWSER_XSS_FILTER = False
SECURE_CONTENT_TYPE_NOSNIFF = False
SECURE_HSTS_INCLUDE_SUBDOMAINS = False
SECURE_HSTS_PRELOAD = False
SECURE_HSTS_SECONDS = 0
SECURE_REDIRECT_EXEMPT = []
SECURE_SSL_HOST = None
SECURE_SSL_REDIRECT = False
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)

View File

@ -1,14 +1,8 @@
# -*- encoding: utf-8 -*-
from __future__ import unicode_literals
"""
LANG_INFO is a dictionary structure to provide meta information about languages.
About name_local: capitalize it as if your language name was appearing
inside a sentence in your language.
The 'fallback' key can be used to specify a special fallback logic which doesn't
follow the traditional 'fr-ca' -> 'fr' fallback logic.
"""
# About name_local: capitalize it as if your language name was appearing
# inside a sentence in your language.
LANG_INFO = {
'af': {
@ -23,17 +17,11 @@ LANG_INFO = {
'name': 'Arabic',
'name_local': 'العربيّة',
},
'ast': {
'bidi': False,
'code': 'ast',
'name': 'Asturian',
'name_local': 'asturianu',
},
'az': {
'bidi': True,
'code': 'az',
'name': 'Azerbaijani',
'name_local': 'Azərbaycanca',
'name_local': 'azərbaycan dili',
},
'be': {
'bidi': False,
@ -95,12 +83,6 @@ LANG_INFO = {
'name': 'German',
'name_local': 'Deutsch',
},
'dsb': {
'bidi': False,
'code': 'dsb',
'name': 'Lower Sorbian',
'name_local': 'dolnoserbski',
},
'el': {
'bidi': False,
'code': 'el',
@ -113,12 +95,6 @@ LANG_INFO = {
'name': 'English',
'name_local': 'English',
},
'en-au': {
'bidi': False,
'code': 'en-au',
'name': 'Australian English',
'name_local': 'Australian English',
},
'en-gb': {
'bidi': False,
'code': 'en-gb',
@ -143,12 +119,6 @@ LANG_INFO = {
'name': 'Argentinian Spanish',
'name_local': 'español de Argentina',
},
'es-co': {
'bidi': False,
'code': 'es-co',
'name': 'Colombian Spanish',
'name_local': 'español de Colombia',
},
'es-mx': {
'bidi': False,
'code': 'es-mx',
@ -197,11 +167,11 @@ LANG_INFO = {
'name': 'French',
'name_local': 'français',
},
'fy': {
'fy-nl': {
'bidi': False,
'code': 'fy',
'code': 'fy-nl',
'name': 'Frisian',
'name_local': 'frysk',
'name_local': 'Frisian',
},
'ga': {
'bidi': False,
@ -209,12 +179,6 @@ LANG_INFO = {
'name': 'Irish',
'name_local': 'Gaeilge',
},
'gd': {
'bidi': False,
'code': 'gd',
'name': 'Scottish Gaelic',
'name_local': 'Gàidhlig',
},
'gl': {
'bidi': False,
'code': 'gl',
@ -239,12 +203,6 @@ LANG_INFO = {
'name': 'Croatian',
'name_local': 'Hrvatski',
},
'hsb': {
'bidi': False,
'code': 'hsb',
'name': 'Upper Sorbian',
'name_local': 'hornjoserbsce',
},
'hu': {
'bidi': False,
'code': 'hu',
@ -257,12 +215,6 @@ LANG_INFO = {
'name': 'Interlingua',
'name_local': 'Interlingua',
},
'io': {
'bidi': False,
'code': 'io',
'name': 'Ido',
'name_local': 'ido',
},
'id': {
'bidi': False,
'code': 'id',
@ -353,12 +305,6 @@ LANG_INFO = {
'name': 'Mongolian',
'name_local': 'Mongolian',
},
'mr': {
'bidi': False,
'code': 'mr',
'name': 'Marathi',
'name_local': 'मराठी',
},
'my': {
'bidi': False,
'code': 'my',
@ -441,7 +387,7 @@ LANG_INFO = {
'bidi': False,
'code': 'sk',
'name': 'Slovak',
'name_local': 'Slovensky',
'name_local': 'slovenský',
},
'sl': {
'bidi': False,
@ -534,33 +480,15 @@ LANG_INFO = {
'name_local': 'Tiếng Việt',
},
'zh-cn': {
'fallback': ['zh-hans'],
},
'zh-hans': {
'bidi': False,
'code': 'zh-hans',
'code': 'zh-cn',
'name': 'Simplified Chinese',
'name_local': '简体中文',
},
'zh-hant': {
'zh-tw': {
'bidi': False,
'code': 'zh-hant',
'code': 'zh-tw',
'name': 'Traditional Chinese',
'name_local': '繁體中文',
},
'zh-hk': {
'fallback': ['zh-hant'],
},
'zh-mo': {
'fallback': ['zh-hant'],
},
'zh-my': {
'fallback': ['zh-hans'],
},
'zh-sg': {
'fallback': ['zh-hans'],
},
'zh-tw': {
'fallback': ['zh-hant'],
},
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -6,19 +6,19 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F، Y'
TIME_FORMAT = 'g:i A'
# DATETIME_FORMAT =
TIME_FORMAT = 'g:i:s A'
# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd/m/Y'
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
# NUMBER_GROUPING =
# NUMBER_GROUPING =

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,35 +0,0 @@
# -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j E Y'
TIME_FORMAT = 'G:i'
DATETIME_FORMAT = 'j E Y, G:i'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d.%m.%Y', # '25.10.2006'
'%d.%m.%y', # '25.10.06'
]
DATETIME_INPUT_FORMATS = [
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
'%d.%m.%Y', # '25.10.2006'
'%d.%m.%y %H:%M:%S', # '25.10.06 14:30:59'
'%d.%m.%y %H:%M:%S.%f', # '25.10.06 14:30:59.000200'
'%d.%m.%y %H:%M', # '25.10.06 14:30'
'%d.%m.%y', # '25.10.06'
]
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -6,19 +6,19 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'H:i'
# DATETIME_FORMAT =
# YEAR_MONTH_FORMAT =
TIME_FORMAT = 'H:i:s'
# DATETIME_FORMAT =
# YEAR_MONTH_FORMAT =
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = ' ' # Non-breaking space
# NUMBER_GROUPING =
THOUSAND_SEPARATOR = ' ' # Non-breaking space
# NUMBER_GROUPING =

File diff suppressed because it is too large Load Diff

View File

@ -6,30 +6,19 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F, Y'
TIME_FORMAT = 'g:i A'
# DATETIME_FORMAT =
TIME_FORMAT = 'g:i:s A'
# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'j M, Y'
# SHORT_DATETIME_FORMAT =
FIRST_DAY_OF_WEEK = 6 # Saturday
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d/%m/%Y', # 25/10/2016
'%d/%m/%y', # 25/10/16
'%d-%m-%Y', # 25-10-2016
'%d-%m-%y', # 25-10-16
]
TIME_INPUT_FORMATS = [
'%H:%M:%S', # 14:30:59
'%H:%M', # 14:30
]
DATETIME_INPUT_FORMATS = [
'%d/%m/%Y %H:%M:%S', # 25/10/2006 14:30:59
'%d/%m/%Y %H:%M', # 25/10/2006 14:30
]
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
# NUMBER_GROUPING =
# NUMBER_GROUPING =

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -11,14 +11,14 @@ DATETIME_FORMAT = 'j. N. Y. G:i T'
YEAR_MONTH_FORMAT = 'F Y.'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'Y M j'
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
# NUMBER_GROUPING =
# NUMBER_GROUPING =

File diff suppressed because it is too large Load Diff

View File

@ -6,28 +6,29 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'j \d\e F \d\e Y'
TIME_FORMAT = 'G:i'
TIME_FORMAT = 'G:i:s'
DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\e\s G:i'
YEAR_MONTH_FORMAT = r'F \d\e\l Y'
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y G:i'
FIRST_DAY_OF_WEEK = 1 # Monday
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
# '31/12/2009', '31/12/09'
'%d/%m/%Y', '%d/%m/%y'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%d/%m/%Y %H:%M:%S',
'%d/%m/%Y %H:%M:%S.%f',
'%d/%m/%Y %H:%M',
'%d/%m/%y %H:%M:%S',
'%d/%m/%y %H:%M:%S.%f',
'%d/%m/%y %H:%M',
]
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -6,40 +6,40 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j. E Y'
TIME_FORMAT = 'G:i'
DATETIME_FORMAT = 'j. E Y G:i'
TIME_FORMAT = 'G:i:s'
DATETIME_FORMAT = 'j. E Y G:i:s'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y G:i'
FIRST_DAY_OF_WEEK = 1 # Monday
SHORT_DATETIME_FORMAT = 'd.m.Y G:i:s'
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
'%d.%m.%Y', '%d.%m.%y', # '05.01.2006', '05.01.06'
'%d. %m. %Y', '%d. %m. %y', # '5. 1. 2006', '5. 1. 06'
'%d. %m. %Y', '%d. %m. %y', # '5. 1. 2006', '5. 1. 06'
# '%d. %B %Y', '%d. %b. %Y', # '25. October 2006', '25. Oct. 2006'
]
)
# Kept ISO formats as one is in first position
TIME_INPUT_FORMATS = [
'%H:%M:%S', # '04:30:59'
TIME_INPUT_FORMATS = (
'%H:%M:%S', # '04:30:59'
'%H.%M', # '04.30'
'%H:%M', # '04:30'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%d.%m.%Y %H:%M:%S', # '05.01.2006 04:30:59'
'%d.%m.%Y %H:%M:%S.%f', # '05.01.2006 04:30:59.000200'
'%d.%m.%Y %H:%M:%S.%f', # '05.01.2006 04:30:59.000200'
'%d.%m.%Y %H.%M', # '05.01.2006 04.30'
'%d.%m.%Y %H:%M', # '05.01.2006 04:30'
'%d.%m.%Y', # '05.01.2006'
'%d. %m. %Y %H:%M:%S', # '05. 01. 2006 04:30:59'
'%d. %m. %Y %H:%M:%S.%f', # '05. 01. 2006 04:30:59.000200'
'%d. %m. %Y %H:%M:%S.%f', # '05. 01. 2006 04:30:59.000200'
'%d. %m. %Y %H.%M', # '05. 01. 2006 04.30'
'%d. %m. %Y %H:%M', # '05. 01. 2006 04:30'
'%d. %m. %Y', # '05. 01. 2006'
'%Y-%m-%d %H.%M', # '2006-01-05 04.30'
]
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -5,34 +5,20 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j F Y' # '25 Hydref 2006'
TIME_FORMAT = 'P' # '2:30 y.b.'
DATETIME_FORMAT = 'j F Y, P' # '25 Hydref 2006, 2:30 y.b.'
YEAR_MONTH_FORMAT = 'F Y' # 'Hydref 2006'
MONTH_DAY_FORMAT = 'j F' # '25 Hydref'
SHORT_DATE_FORMAT = 'd/m/Y' # '25/10/2006'
SHORT_DATETIME_FORMAT = 'd/m/Y P' # '25/10/2006 2:30 y.b.'
FIRST_DAY_OF_WEEK = 1 # 'Dydd Llun'
DATE_FORMAT = 'd F Y'
TIME_FORMAT = 'g:i:s A'
# DATETIME_FORMAT =
# YEAR_MONTH_FORMAT =
# MONTH_DAY_FORMAT =
SHORT_DATE_FORMAT = 'j M Y'
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
]
DATETIME_INPUT_FORMATS = [
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
'%Y-%m-%d', # '2006-10-25'
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
'%d/%m/%Y', # '25/10/2006'
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
'%d/%m/%y %H:%M', # '25/10/06 14:30'
'%d/%m/%y', # '25/10/06'
]
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
# DECIMAL_SEPARATOR =
# THOUSAND_SEPARATOR =
# NUMBER_GROUPING =

File diff suppressed because it is too large Load Diff

View File

@ -16,14 +16,14 @@ FIRST_DAY_OF_WEEK = 1
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
'%d.%m.%Y', # '25.10.2006'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
]
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -6,26 +6,26 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j. F Y'
TIME_FORMAT = 'H:i'
DATETIME_FORMAT = 'j. F Y H:i'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'j. F Y H:i:s'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
FIRST_DAY_OF_WEEK = 1 # Monday
SHORT_DATETIME_FORMAT = 'd.m.Y H:i:s'
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
'%d.%m.%Y', '%d.%m.%y', # '25.10.2006', '25.10.06'
# '%d. %B %Y', '%d. %b. %Y', # '25. October 2006', '25. Oct. 2006'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
'%d.%m.%Y', # '25.10.2006'
]
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3

View File

@ -7,26 +7,26 @@
from __future__ import unicode_literals
DATE_FORMAT = 'j. F Y'
TIME_FORMAT = 'H:i'
DATETIME_FORMAT = 'j. F Y H:i'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = 'j. F Y H:i:s'
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j. F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
FIRST_DAY_OF_WEEK = 1 # Monday
SHORT_DATETIME_FORMAT = 'd.m.Y H:i:s'
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
'%d.%m.%Y', '%d.%m.%y', # '25.10.2006', '25.10.06'
# '%d. %B %Y', '%d. %b. %Y', # '25. October 2006', '25. Oct. 2006'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%d.%m.%Y %H:%M:%S', # '25.10.2006 14:30:59'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M:%S.%f', # '25.10.2006 14:30:59.000200'
'%d.%m.%Y %H:%M', # '25.10.2006 14:30'
'%d.%m.%Y', # '25.10.2006'
]
)
# these are the separators for non-monetary numbers. For monetary numbers,
# the DECIMAL_SEPARATOR is a . (decimal point) and the THOUSAND_SEPARATOR is a
@ -34,5 +34,5 @@ DATETIME_INPUT_FORMATS = [
# For details, please refer to http://www.bk.admin.ch/dokumentation/sprachen/04915/05016/index.html?lang=de
# (in German) and the documentation
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -5,34 +5,20 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'd/m/Y'
TIME_FORMAT = 'P'
DATETIME_FORMAT = 'd/m/Y P'
DATE_FORMAT = 'd E Y'
TIME_FORMAT = 'g:i:s A'
# DATETIME_FORMAT =
YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y P'
FIRST_DAY_OF_WEEK = 0 # Sunday
SHORT_DATE_FORMAT = 'd M Y'
# SHORT_DATETIME_FORMAT =
# FIRST_DAY_OF_WEEK =
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d/%m/%Y', '%d/%m/%y', '%Y-%m-%d', # '25/10/2006', '25/10/06', '2006-10-25',
]
DATETIME_INPUT_FORMATS = [
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
'%d/%m/%Y', # '25/10/2006'
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
'%d/%m/%y %H:%M', # '25/10/06 14:30'
'%d/%m/%y', # '25/10/06'
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
'%Y-%m-%d', # '2006-10-25'
]
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3
# NUMBER_GROUPING =

File diff suppressed because it is too large Load Diff

View File

@ -12,19 +12,19 @@ YEAR_MONTH_FORMAT = 'F Y'
MONTH_DAY_FORMAT = 'F j'
SHORT_DATE_FORMAT = 'm/d/Y'
SHORT_DATETIME_FORMAT = 'm/d/Y P'
FIRST_DAY_OF_WEEK = 0 # Sunday
FIRST_DAY_OF_WEEK = 0 # Sunday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# Kept ISO formats as they are in first position
DATE_INPUT_FORMATS = [
'%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
DATE_INPUT_FORMATS = (
'%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
# '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
# '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
# '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
# '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
@ -37,7 +37,8 @@ DATETIME_INPUT_FORMATS = [
'%m/%d/%y %H:%M:%S.%f', # '10/25/06 14:30:59.000200'
'%m/%d/%y %H:%M', # '10/25/06 14:30'
'%m/%d/%y', # '10/25/06'
]
)
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -1,42 +0,0 @@
# -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j M Y' # '25 Oct 2006'
TIME_FORMAT = 'P' # '2:30 p.m.'
DATETIME_FORMAT = 'j M Y, P' # '25 Oct 2006, 2:30 p.m.'
YEAR_MONTH_FORMAT = 'F Y' # 'October 2006'
MONTH_DAY_FORMAT = 'j F' # '25 October'
SHORT_DATE_FORMAT = 'd/m/Y' # '25/10/2006'
SHORT_DATETIME_FORMAT = 'd/m/Y P' # '25/10/2006 2:30 p.m.'
FIRST_DAY_OF_WEEK = 0 # Sunday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
# '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
# '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
# '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
# '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
]
DATETIME_INPUT_FORMATS = [
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
'%Y-%m-%d', # '2006-10-25'
'%d/%m/%Y %H:%M:%S', # '25/10/2006 14:30:59'
'%d/%m/%Y %H:%M:%S.%f', # '25/10/2006 14:30:59.000200'
'%d/%m/%Y %H:%M', # '25/10/2006 14:30'
'%d/%m/%Y', # '25/10/2006'
'%d/%m/%y %H:%M:%S', # '25/10/06 14:30:59'
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
'%d/%m/%y %H:%M', # '25/10/06 14:30'
'%d/%m/%y', # '25/10/06'
]
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -6,24 +6,24 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = 'j M Y' # '25 Oct 2006'
TIME_FORMAT = 'P' # '2:30 p.m.'
DATETIME_FORMAT = 'j M Y, P' # '25 Oct 2006, 2:30 p.m.'
TIME_FORMAT = 'P' # '2:30 pm'
DATETIME_FORMAT = 'j M Y, P' # '25 Oct 2006, 2:30 pm'
YEAR_MONTH_FORMAT = 'F Y' # 'October 2006'
MONTH_DAY_FORMAT = 'j F' # '25 October'
SHORT_DATE_FORMAT = 'd/m/Y' # '25/10/2006'
SHORT_DATETIME_FORMAT = 'd/m/Y P' # '25/10/2006 2:30 p.m.'
FIRST_DAY_OF_WEEK = 1 # Monday
SHORT_DATETIME_FORMAT = 'd/m/Y P' # '25/10/2006 2:30 pm'
FIRST_DAY_OF_WEEK = 0 # Sunday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
'%d/%m/%Y', '%d/%m/%y', # '25/10/2006', '25/10/06'
# '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006'
# '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006'
# '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006'
# '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59'
'%Y-%m-%d %H:%M:%S.%f', # '2006-10-25 14:30:59.000200'
'%Y-%m-%d %H:%M', # '2006-10-25 14:30'
@ -36,7 +36,8 @@ DATETIME_INPUT_FORMATS = [
'%d/%m/%y %H:%M:%S.%f', # '25/10/06 14:30:59.000200'
'%d/%m/%y %H:%M', # '25/10/06 14:30'
'%d/%m/%y', # '25/10/06'
]
)
DECIMAL_SEPARATOR = '.'
THOUSAND_SEPARATOR = ','
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -1,52 +0,0 @@
# -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'j\-\a \d\e F Y' # '26-a de julio 1887'
TIME_FORMAT = 'H:i' # '18:59'
DATETIME_FORMAT = r'j\-\a \d\e F Y\, \j\e H:i' # '26-a de julio 1887, je 18:59'
YEAR_MONTH_FORMAT = r'F \d\e Y' # 'julio de 1887'
MONTH_DAY_FORMAT = r'j\-\a \d\e F' # '26-a de julio'
SHORT_DATE_FORMAT = 'Y-m-d' # '1887-07-26'
SHORT_DATETIME_FORMAT = 'Y-m-d H:i' # '1887-07-26 18:59'
FIRST_DAY_OF_WEEK = 1 # Monday (lundo)
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%Y-%m-%d', # '1887-07-26'
'%y-%m-%d', # '87-07-26'
'%Y %m %d', # '1887 07 26'
'%d-a de %b %Y', # '26-a de jul 1887'
'%d %b %Y', # '26 jul 1887'
'%d-a de %B %Y', # '26-a de julio 1887'
'%d %B %Y', # '26 julio 1887'
'%d %m %Y', # '26 07 1887'
]
TIME_INPUT_FORMATS = [
'%H:%M:%S', # '18:59:00'
'%H:%M', # '18:59'
]
DATETIME_INPUT_FORMATS = [
'%Y-%m-%d %H:%M:%S', # '1887-07-26 18:59:00'
'%Y-%m-%d %H:%M', # '1887-07-26 18:59'
'%Y-%m-%d', # '1887-07-26'
'%Y.%m.%d %H:%M:%S', # '1887.07.26 18:59:00'
'%Y.%m.%d %H:%M', # '1887.07.26 18:59'
'%Y.%m.%d', # '1887.07.26'
'%d/%m/%Y %H:%M:%S', # '26/07/1887 18:59:00'
'%d/%m/%Y %H:%M', # '26/07/1887 18:59'
'%d/%m/%Y', # '26/07/1887'
'%y-%m-%d %H:%M:%S', # '87-07-26 18:59:00'
'%y-%m-%d %H:%M', # '87-07-26 18:59'
'%y-%m-%d', # '87-07-26'
]
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '\xa0' # non-breaking space
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -6,28 +6,29 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'j \d\e F \d\e Y'
TIME_FORMAT = 'H:i'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = r'j \d\e F \d\e Y \a \l\a\s H:i'
YEAR_MONTH_FORMAT = r'F \d\e Y'
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = 'd/m/Y'
SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
FIRST_DAY_OF_WEEK = 1 # Monday
FIRST_DAY_OF_WEEK = 1 # Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
# '31/12/2009', '31/12/09'
'%d/%m/%Y', '%d/%m/%y'
]
DATETIME_INPUT_FORMATS = [
)
DATETIME_INPUT_FORMATS = (
'%d/%m/%Y %H:%M:%S',
'%d/%m/%Y %H:%M:%S.%f',
'%d/%m/%Y %H:%M',
'%d/%m/%y %H:%M:%S',
'%d/%m/%y %H:%M:%S.%f',
'%d/%m/%y %H:%M',
]
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3

File diff suppressed because it is too large Load Diff

View File

@ -6,28 +6,28 @@ from __future__ import unicode_literals
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'j N Y'
TIME_FORMAT = r'H:i'
DATETIME_FORMAT = r'j N Y H:i'
TIME_FORMAT = r'H:i:s'
DATETIME_FORMAT = r'j N Y H:i:s'
YEAR_MONTH_FORMAT = r'F Y'
MONTH_DAY_FORMAT = r'j \d\e F'
SHORT_DATE_FORMAT = r'd/m/Y'
SHORT_DATETIME_FORMAT = r'd/m/Y H:i'
FIRST_DAY_OF_WEEK = 0 # 0: Sunday, 1: Monday
FIRST_DAY_OF_WEEK = 0 # 0: Sunday, 1: Monday
# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
DATE_INPUT_FORMATS = [
'%d/%m/%Y', # '31/12/2009'
'%d/%m/%y', # '31/12/09'
]
DATETIME_INPUT_FORMATS = [
DATE_INPUT_FORMATS = (
'%d/%m/%Y', # '31/12/2009'
'%d/%m/%y', # '31/12/09'
)
DATETIME_INPUT_FORMATS = (
'%d/%m/%Y %H:%M:%S',
'%d/%m/%Y %H:%M:%S.%f',
'%d/%m/%Y %H:%M',
'%d/%m/%y %H:%M:%S',
'%d/%m/%y %H:%M:%S.%f',
'%d/%m/%y %H:%M',
]
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3

Some files were not shown because too many files have changed in this diff Show More