2755 Commits

Author SHA1 Message Date
Mads Jensen
8c522d71e3 [3.0.x] Added link to Mozilla's infosec page on web security.
Backport of 060d9d4229c436c44cf8e3a301f34c4b1f9f6c85 from master
2020-04-22 16:27:19 +02:00
Jon Dufresne
c335f16855 [3.0.x] Refs #30165 -- Removed obsolete doc references to deprecated ugettext() & co.
The u-prefixed variants were removed from the documentation in
6eb4996672ca5ccaba20e468d91a83d1cd019801.
Backport of fb21625270ab169fd436c36dd51acb642a97ee50 from master
2020-04-20 07:58:03 +02:00
Mariusz Felisiak
e42320d2f2 [3.0.x] Used :rfc: role in various docs.
Backport of f1a808a5025b63715d1034af2b96a6a5241d29e9 from master.
2020-04-15 20:02:38 +02:00
Andrew Godwin
d292d1163e [3.0.x] Refs #31224 -- Removed incorrect @sync_to_async(thread_sensitive=True) example.
It does not support thread_sensitive when used as a decorator, yet.
Backport of b5ad450fa6d53186b68f89a4507fdbabc8900f74 from master
2020-04-14 07:27:05 +02:00
Mariusz Felisiak
f425835cbe [3.0.x] Fixed highlightlang deprecation warning on Sphinx 1.8+.
Backport of 678f958ef972bf9be402332537149ca0884035ba from master
2020-04-07 09:49:41 +02:00
Mariusz Felisiak
255f3f77d2 [3.0.x] Fixed Sphinx warnings on duplicate object descriptions.
Backport of 69e2cd6fed40f3ecf767609b80ad31f288446e48 from master
2020-04-07 09:49:31 +02:00
Simon Charette
810f18c2df [3.0.x] Fixed #31423 -- Clarified nested atomic() example.
Backport of fa5e7e46d875d4143510944f19d79df7b1739bab from master
2020-04-06 06:17:16 +02:00
Adam Johnson
0342d47e7a [3.0.x] Prevented (and corrected) single backtick usage in docs.
Backport of 1cdfe8d91215eefaa18c398069dd9c6879a9511d from master.
2020-04-01 15:15:21 +02:00
Adam Johnson
2306f8c9bb [3.0.x] Added additional note that tests use locmem email backend.
Backport of f344c75fb09f75879334740f1f8a09c176d93c12 from master
2020-03-25 15:25:56 +01:00
Adam Johnson
c740a994fa [3.0.x] Improved docs on migration reversibility.
- Clarify reversibility for RunSQL and RunPython operations.
- Add example for migrate with irreversible migration.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of b15b3706fec8ef59577ac47118ee0c62132a03a6 from master
2020-03-25 14:39:17 +01:00
Adam Johnson
76db34e52a [3.0.x] Improved sessions notes in deployment checklist.
- Added note to clear old sessions when using database-backend.
- Made note to consider the cache backend more generic.
Backport of 66b06822d05ca1cf897745e7cb3c89adc53363ba from master
2020-03-25 12:05:36 +01:00
Carlton Gibson
5c1ad59a0e [3.0.x] Fixed typo in docs/topics/async.txt.
Backport of f622b490106289e78c727c464d001e01a4f71d8b from master
2020-03-17 20:57:45 +01:00
Ben Li-Sauerwine
2f5c35cf39 [3.0.x] Made logging config examples more accessible.
- Show an initial example configuring the root logger to output to the console.
- Then add more logging from the `django` named logger.
- Then show the file and more complex examples.

Adjusted surrounding text for reading flow.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
Backport of fc84848cd9509409e420b21b6db697f22f2c82a4 from master
2020-03-17 11:51:50 +01:00
Philipp Bosch
725d7c2a7c [3.0.x] Corrected outdated sentence in One-to-one relationships docs.
Backport of f75af5b67bac58d6c6d043d5e9e14bd0908505dd from master
2020-03-17 11:08:55 +01:00
Andrew Godwin
8d4638db20 [3.0.x] Refs #31224 -- Doc'd async adapter functions.
Backport of 40a64dd1e24d45f8e00a55b22a5174b8f1359b5c from master
2020-03-13 07:37:30 +01:00
Claude Paroz
d9f1792c76 [3.0.x] Fixed #30439 -- Added support for different plural forms for a language.
Thanks to Michal Čihař for review.
Backport of e3e48b00127c09eafe6439d980a82fc5c591b673 from master
2020-03-10 15:57:36 +01:00
Adam Radwon
0f524f5686 [3.0.x] Fixed #27865 -- Adjusted docs example to avoid confusion with models.BaseManager.
Backport of a2f554249ec07d4643643773a995579f98564ac1 from master
2020-03-10 09:17:41 +01:00
Shrikrishna Singh
300bd064c1 [3.0.x] Fixed #31350 -- Fixed typo in docs/topics/db/optimization.txt.
Backport of 370628673b98ada302c3930865c4bfde2d8ed5a1 from master
2020-03-09 07:55:28 +01:00
Mariusz Felisiak
f389e2c960 [3.0.x] Added missing backticks in various docs.
Backport of 30ca66eadd1135d220ae1f0570bb0244c26b9d29 from master
2020-03-06 11:53:35 +01:00
Carlton Gibson
1c1911dcd9 [3.0.x] Fixed #31342 -- Clarified docs about using base managers for related objects.
Backport of 08a6215d334f88f16707278e6003af59d13345b4 from master
2020-03-06 11:43:28 +01:00
Claude Paroz
e3069f6665 [3.0.x] Fixed #31341 -- Doc'd minimal gettext version with ES6 template strings support.
Backport of 2f53d324debee680658aed7f22f1aaf81385b1f2 from master
2020-03-05 13:49:17 +01:00
Matheus Cunha Motta
0193a1630e [3.0.x] Fixed #31303 -- Removed outdated note about symmetrical intermediate table for self-referential ManyToManyField.
Follow up to 87b1ad6e7351464c60e751b483d9dfce3a2d3382.

Backport of 0352a44dd61c19bebf0c0b305dbbc3f710ff9945 from master
2020-02-24 08:55:24 +01:00
Hasan Ramezani
a73489f162 [3.0.x] Fixed #30040 -- Used default permission name in docs examples to avoid confusion.
Backport of b7795d7673f51daf288ac80616ef69b05918ca6b from master
2020-02-19 15:46:45 +01:00
Jon Dufresne
21cc097403 [3.0.x] Fixed #31212 -- Updated psycopg links to HTTPS and new location.
Backport of 958977f662d878c299b3599282f005c3469dbef9 from master
2020-01-29 06:53:43 +01:00
Roy Smith
27739ad3f2 [3.0.x] Fixed #31184 -- Clarified URL matching behavior in URL dispatcher docs.
Backport of cf493e5c819f5ee49b96954f026bec722e19d9c3 from master
2020-01-24 12:22:51 +01:00
Mariusz Felisiak
8712027b22 [3.0.x] Refs #29998 -- Corrected auto-created OneToOneField parent_link in MTI docs.
Backport of d202846ced2f58d7a34ad80bfe2bde8a542a70b9 from master
2020-01-15 15:07:52 +01:00
Kal Sze
2efc832cdf [3.0.x] More accurate terminology ("logger" instead of "logging handler") in logging documentation.
Backport of aa6c620249bc8c2a6245c8d7b928b05e7e5e78fc from master
2020-01-09 15:28:55 +01:00
Jack Cushman
b11761e3cc [3.0.x] Clarified that ValueError raised by converter.to_python() means no match unless another URL pattern matches.
Backport of 196009c72c7144f25bc5e4029ef519db0190bb89 from master
2020-01-08 11:20:57 +01:00
Mark Bailey
e7d7e04d95 [3.0.x] Fixed #31103 -- Improved pagination topic documentation.
Backport of 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88 from master
2020-01-07 10:34:19 +01:00
Jon Dufresne
eb40426259 [3.0.x] Removed unnecessary code-block directives in various docs.
Backport of 5e00bd1f7717149573df9607b848297a520881d3 from master
2019-12-23 14:48:16 +01:00
Garry Polley
77722711df [3.0.x] Added example of assertNumQueries() with "using" kwarg in testing topics docs.
Backport of 0b698eaea611d3bafa86d6d81d9203b482600ccb from master
2019-12-20 08:44:07 +01:00
Nick Pope
08b426aedb [3.0.x] Refs #28954 -- Remove remaining Jython documentation.
There is still no further progress on Jython 3 since support for Jython
was stripped in Django 2.0. The developers experimenting with Jython 3
have stated that they would need to start from scratch, so it doesn't
look as though it will materialize for years to come.

Python 2 and Django 1.11, the last version to support Python 2.7, will
both be end-of-life before Django 3.1 is released. We should no longer
instruct users to use an unsupported version of Django.

Backport of d8b6a76bc745b21c6cf2b29c220a91bcae7fd3d7 from master
2019-12-19 16:44:39 +01:00
Hasan Ramezani
fb260ad777 [3.0.x] Corrected some typos in documentation.
Backport of 70d95682b1be6a85abdeaea0205a897f7530f8bc from master
2019-12-18 11:37:32 +01:00
Hasan Ramezani
6cb30414bc [3.0.x] Fixed #31069, Refs #26431 -- Doc'd RegexPattern behavior change in passing optional named groups in Django 3.0.
Backport of 9736137cdc4b7528a0aca17415dc9798660eed81 from master
2019-12-12 14:49:13 +01:00
Mariusz Felisiak
e986e49e66 [3.0.x] Fixed #31061 -- Ignored positional args in django.urls.resolve() when all optional named parameters are missing.
Regression in 76b993a117b61c41584e95149a67d8a1e9f49dd1.

Thanks Claude Paroz for the report and Carlton Gibson for reviews.
Backport of 82a88d2f48e13ef5d472741d5ed1c183230cfe4c from master
2019-12-06 09:33:45 +01:00
Felipe Lee
87483757c8 [3.0.x] Fixed #20456 -- Added example of directly testing CBVs in topics docs.
Backport of a2e96f7969059fb4e621a1cd591fbdd0d4deae2e from master
2019-12-04 16:41:46 +01:00
Claude Paroz
e8f126aae1 [3.0.x] Removed leftover word in CBV mixins docs.
Backport of d83b585e5cc2b6dec49982670b86d6b4dd339342 from master
2019-12-04 09:15:35 +01:00
Andrew Godwin
9243435b5e [3.0.x] Fixed #31056 -- Allowed disabling async-unsafe check with an environment variable.
Backport of c90ab30fa1305481024b9c3c50b5a6ed6cd9a2f5 from master
2019-12-03 17:50:24 +01:00
Andrew Godwin
45de0c299b [3.0.x] Refs #30451 -- Doc'd asynchronous support and async-safety.
Backport of 635a3f8e6e0303e8a87586ef6be4ab0cc01d7c0d from master
2019-12-03 17:50:18 +01:00
Claude Paroz
830a5bcf15 [stable/3.0.x] Fixed typo in topics docs
Backport of b92d101bd868aa460d16d1196a798df7e5c1ea33 from master.
2019-12-03 16:51:45 +01:00
Sergey Fedoseev
314ad45c09 [3.0.x] Used 🎫 role in all tickets links.
Backport of abc51d44afcb8482c64c0bb8c1022f11e7eb2bbb from master
2019-11-26 14:43:27 +01:00
Mariusz Felisiak
ae2e13504b [3.0.x] Fixed #31008 -- Fixed typos in docs/topics/logging.txt.
Backport of 3e5b349535f011a51dc308898924786143000631 from master
2019-11-20 20:36:20 +01:00
Caio Ariede
5f24b18e6c [3.0.x] Fixed #27164 -- Fixed an example of using routers in multiple databases docs.
Make sure that AuthRouter includes ContentType in the same database.

Backport of 608e06023e6eaf75f744134a0fd203853260e616 from master
2019-11-20 11:51:33 +01:00
David Foster
c598ffd2e1 [3.0.x] Fixed #30828 -- Added how to remove/insert many-to-many relations in bulk to the database optimization docs.
Backport of 6a04e69e686cf417b469d7676f93c2e3a9c8d6a3 from master
2019-11-12 13:13:20 +01:00
Mariusz Felisiak
2c2afbe104 [3.0.x] Fixed typo in docs/topics/files.txt.
Backport of 08c0d8b16bb7e79074bc9c8ab4f0db97a94d336a from master
2019-11-11 11:52:18 +01:00
Shipeng Feng
59578ebaa0 [3.0.x] Fixed #30955 -- Doc'd that only concrete base models are stored in historical models bases.
Abstract models are removed from bases when generating historical model
state since 6436f1fad9ce51f18735106ac75aeea3d6d1f310.
Backport of 8058d9d7adb189fec75a4b57565f225996c7b22c from master
2019-11-08 09:43:20 +01:00
René Fleschenberg
87a10c3d6e [3.0.x] Replaced 'n_' prefix with 'number_of_' in docs/topics/db/queries.txt.
Backport of 367634f976ab43db93321bf4eb898449b670e291 from master
2019-11-07 09:41:01 +01:00
Mariusz Felisiak
2000ed5180 [3.0.x] Refs #30947 -- Changed tuples to lists in model Meta options examples in docs.
Follow up to 97d3321e89c8d4434927bdbc308db1ccffa99d3b.

Backport of e5cacb1f47cb3a2943bbc7685a630c84503b0d1b from master
2019-11-05 08:40:17 +01:00
Adam Johnson
b40272f5ea [3.0.x] Updated list of field types conversions in ModelForm docs.
Backport of 5a856669bf0574f612eea89e72a6b0a3d2cb80d9 from master
2019-11-04 11:03:58 +01:00
Mariusz Felisiak
453074bc1f [3.0.x] Corrected error message in Many-to-many relationships docs.
Backport of a370dbd9543703677697e80701b5dbec8c8e7da7 from master
2019-10-30 16:17:54 +01:00