1
0
mirror of https://github.com/django/django.git synced 2025-04-01 20:16:43 +00:00

2019 Commits

Author SHA1 Message Date
Neal Todd
a16d4e249c [1.8.x] De-emphasized use of NullHandler in logging docs.
NullHandler removed in 1.9; unused since Django 1.5.

Backport of b3acdeee502e961065bfcdb7673d7cf91ab5b283 from master
2015-11-18 09:56:33 -05:00
Alex Morozov
b4aa38d106 [1.8.x] Fixed #25710 -- Clarified the docs about what INTERNAL_IPS does.
Backport of 5abed864ee1cd31a0b920768b4abe85b26b43a4d from master
2015-11-17 10:18:07 -05:00
Anderson Resende
2a4a9e316e [1.8.x] Fixed #25744 -- Corrected reference to User object in auth docs.
Backport of ce4914eab4688ace4b97d14a8c271887235ebb3f from master
2015-11-12 19:23:59 -05:00
Bryan Marty
16c1075d33 [1.8.x] Fixed #25169 -- Documented stacking of permission_required and login_required.
Backport of 9788625277b85596302bbf2c39cf829b7a766a4f from master
2015-11-12 14:27:22 -05:00
Tim Graham
10d18dec10 [1.8.x] Fixed #10045 -- Corrected docs about .annotate()/.filter() ordering.
Thanks Josh, Anssi, and Carl for reviews and advice.

Backport of 91a431f48c1fc5ecc9a837e8071a0062d31b490f from master
2015-11-12 13:22:17 -05:00
Tim Graham
e592574e6e [1.8.x] Fixed #25727 -- Added a doc link to cached_property.
Backport of e0de82c9b2c41c4c479d2245e7d5cd59638b5440 from master
2015-11-10 13:29:04 -05:00
Thijs van Dien
78a28cca20 [1.8.x] Fixed #25473 -- Changed underscores in url() names to dashes in docs.
To improve consistency, sample URL names that had underscores
in them now use dashes instead. That excludes URL names that
have some relation to the code, such as those generated by
the admin.

Thanks guettli for reporting this.

Backport of 1679472165e840aef4c8c9ece2fbf4620b87beab from master
2015-11-07 22:02:03 +01:00
Tim Graham
bd55e80635 [1.8.x] Fixed #25290 -- Warned against modifying objects created in setUpTestData() in tests.
Backport of 81006b9657534a21c3eadb2bc4a87c46db54c099 from master
2015-11-07 20:34:07 +01:00
Attila Tovt
189ceae19d [1.8.x] Fixed #25681 -- Added 'default' to DATABASES example.
Backport of ac750dbbc0533dcf9c2f6c0f09957adf6f976d3e from master
2015-11-07 11:10:18 +01:00
japrogramer
383e2e1c53 [1.8.x] Fixed typo in docs/topics/auth/default.txt.
Backport of a10cbbbc17d4244812ef713437fa44207fe1a223 from master
2015-11-03 08:57:15 +00:00
Tomasz Anielak
7648ceb06b [1.8.x] Fixed typo in docs/topics/db/models.txt.
Backport of b67502fb8dccefa0c0a3b4a63f9053c4238a8a0c from master
2015-10-31 08:53:48 -04:00
Bryan Marty
dd0e7f5301 [1.8.x] Fixed #24212 -- Added example pylibmc CACHES configuration.
Backport of ad67fcdf51ebbbd7c02c1a2b1f269edc8f92afdc from master
2015-10-30 13:45:53 -04:00
bee_keeper
06abe84e20 [1.8.x] Added class-based view example to RequestFactory example.
Backport of a17216646adaaa909fe52a4e974b56b4f094fc72 from master
2015-10-30 13:14:29 -04:00
Bryan Marty
42f2546742 [1.8.x] Fixed #21516 -- Updated imports paths for some formset functions/classes.
Since refs #21489, FormSet classes and factories are exposed on the
django.forms package.

Backport of 455034d4df048010de4ae0a9a2392b70d1463c61 from master
2015-10-28 15:49:05 -04:00
Tim Graham
29955ba341 [1.8.x] Made LiveServerTestCase example use StaticLiveServerTestCase.
Backport of 6b5ae92927cb69e8709ab2bb05f6721a7cd37a3c from master
2015-10-28 13:52:33 -04:00
Jacek Bzdak
d83454fbf2 [1.8.x] Fixed #25397 -- Documented class-based view context variable clash with context processors.
Backport of 494b7986a3e5996d857b085f188a630d1504d9ca from master
2015-10-23 15:24:18 -04:00
薛丞宏
415837543e [1.8.x] Clarified that the test client response content attribute is bytes.
Backport of 484edc81c1ebd195c333f3ea8d3f9ca882a17837 from master
2015-10-23 14:27:15 -04:00
Benjamin Wohlwend
840e97ab01 [1.8.x] Refs #24622 -- Documented alternatives to some test response attributes when using alternative template engines.
Backport of 2b9eed41fa26537d1af4f818c6e4296ce3305b01 from master
2015-10-22 14:11:52 -04:00
Tim Graham
ae2250507d [1.8.x] Refs #25527 -- Removed redundant doc heading link that leads to a warning when generating PDF.
Backport of 25f287f6b2f677213605364c33bb37f33feac953 from master
2015-10-07 19:37:00 -04:00
John Moses
a9b6218960 [1.8.x] Fixed #25481 -- Added field.help_text to "Looping over a form's fields" docs.
Backport of ac09d22f7913ff09f98001ff51b783932290e378 from master
2015-10-02 13:00:59 -04:00
David Sanders
07e594bba2 [1.8.x] Clarified that Model.delete() isn't called as a result of a cascading delete.
Backport of 5c6316dc3467fd7b669bea9157f591ac5fd00ec4 from master
2015-09-30 08:44:40 -04:00
David Sanders
1d22b20f11 [1.8.x] Improved "“standalone” Django usage" example.
Backport of ae9f9dc37f39afeaa45c646cf6eef81beffcf021 from master
2015-09-29 15:09:34 -04:00
Tim Graham
f3ce888d3f [1.8.x] Fixed #25376 -- Required virtualenv in installation instructions.
Thanks Anjul Tyagi for some of the draft text.

Backport of a523d94b4581ec41c86f5bbaaffdf5bb6b819c2e from master
2015-09-29 14:33:53 -04:00
Tim Graham
e6f1b1db4c [1.8.x] Documented auth's login/logout function parameters.
Backport of c14b6b52ff131db263bf06a02f903a73390975da from master
2015-09-28 14:12:43 -04:00
Tim Graham
2ca137e271 [1.8.x] Fixed #25451 -- Added advice about organizing tests.
Backport of 53e89ce2e71411ff9d1c3fd6f2b10d052a4aeace from master
2015-09-25 07:15:54 -04:00
Tim Graham
8794ded8d6 [1.8.x] Removed a prominent note about django.utils.unittest deprecation.
It doesn't seem this would be relevant to most readers.
2015-09-24 13:25:43 -04:00
Tim Graham
bb90e8fa2b [1.8.x] Fixed #25455 -- Optimized dictfetchall() example.
Thanks aklim007 for the suggestion.

Backport of 361f60479d1890e8144fc254d7389a67b35725e9 from master
2015-09-24 13:18:45 -04:00
Don Kirkby
1386a823c0 [1.8.x] Fixed typo in docs/topics/db/examples/one_to_one.txt
Backport of dcd7358afd7985c3803cd8ef2a189ca39aaa9603 from master
2015-09-23 13:32:01 -04:00
Tim Graham
4a06a904dc Refs #24361 -- Corrected documented level of the 'django' logger.
The logger doesn't define an explicit level, therefore it defaults
to WARNING.
2015-09-23 11:21:16 -04:00
Rik
55f80d28d4 [1.8.x] Added link to Babel's message extracting functionality.
Backport of 6e51d5d0e531c6aead9ebd638a63ffdc32245e5a from master
2015-09-22 08:54:49 -04:00
Aymeric Augustin
425c5e40ea [1.8.x] Fixed #24921 -- set_autocommit(False) + ORM queries.
This commits lifts the restriction that the outermost atomic block must
be declared with savepoint=False. This restriction was overly cautious.

The logic that makes it safe not to create savepoints for inner blocks
also applies to the outermost block when autocommit is disabled and a
transaction is already active.

This makes it possible to use the ORM after set_autocommit(False).
Previously it didn't work because ORM write operations are protected
with atomic(savepoint=False).

Backport of 91e9f1c from master
2015-09-21 22:31:13 +02:00
Aymeric Augustin
ce3dd17c2e [1.8.x] Updated references to the TEST_* database settings.
They were removed in Django 1.9.

I could leave the reference to TEST_DEPENDENCIES in the 1.2.4 release
notes because the link points to the right location and the name was
accurate at the time.

Backport of 6d1110f from master
2015-09-05 20:31:22 +02:00
Maarten
c06953e8f9 [1.8.x] Fixed #25355 -- Made two tweaks to docs/topics/db/aggregation.txt.
Backport of fe58d96e50e33b05f2a45f1493eca39ec9b3d030 from master
2015-09-05 10:20:36 -04:00
David Sanders
f1d6b5b5b1 [1.8.x] Added links to new security settings introduced in 1.8.
Backport of cc968b9c9046769ddce574b0fc0ce4f525f25843 from master
2015-09-04 12:57:26 -04:00
Maxime Lorant
7dabaa8ee3 [1.8.x] Refs #25345 -- Updated links to code.google.com.
Backport of c92cd22d02349b73d169a3a2ff3b6fe7a54bfb0c from master
2015-09-04 08:18:22 -04:00
Dražen Odobašić
5ed9616a09 [1.8.x] Fixed #25326 -- Added namedtuple example for executing custom SQL.
Backport of 5ab65ca5c900557f508f62a260f9ea53d9d93f37 from master
2015-09-03 13:17:34 -04:00
Tim Graham
58335a2c0b [1.8.x] Fixed #25311 -- Removed vague language about "partial commits" from docs.
Backport of ea47a052ba7a097a98993c240ecea96a115f6c25 from master
2015-08-25 20:24:05 -04:00
Markus Holtermann
79bd15ef32 [1.8.x] Fixed style issues in testing docs
Backport of f33607ce0b744794f6ceafa1dddffbcb32e90978 from master
2015-08-19 21:40:36 +10:00
Anton Strogonoff
a67bf4be35 [1.8.x] Used consistent capitalization and hyphenation of "class-based views" in docs.
Backport of 20787b5c298d97dda10286a942a788423fed483f from master
2015-08-18 19:08:08 -04:00
Tim Graham
77ced0b740 [1.8.x] Updated memcached library links to point to PyPI.
Backport of d772d812cf583e0f99e21850f26addf1d59bfa35 from master
2015-08-11 21:21:24 -04:00
Tim Graham
e4b813c0e7 [1.8.x] Fixed #25160 -- Moved unsaved model instance data loss check to Model.save()
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and
81e1a35c364e5353d2bf99368ad30a4184fbb653.

Thanks Carl Meyer for review.

Backport of 5980b05c1fad69eef907e0076aa2dc837edab529 from master
2015-08-10 11:31:22 -04:00
Claude Paroz
cda66497aa [1.8.x] Updated Wikipedia links to use https
Backport of 64982cc2fb from master.
2015-08-08 12:09:53 +02:00
Tim Graham
a7fb311ace [1.8.x] Fixed #25229 -- Clarified how an iterable works with @permission_required
Backport of 16a8d01308f8ca4a7b4673424059424ba3fe36c8 from master
2015-08-05 17:18:13 -04:00
Tim Graham
ce0f2a4a4f [1.8.x] Fixed #25213 -- Discouraged use of QuerySet.extra()
Thanks Anssi Kääriäinen for the draft text and Simon Charette
for review.

Backport of e8cd65f8297928d3fa7ad3d338953a4423028713 from master
2015-08-05 08:15:44 -04:00
Tim Graham
6f6043fd26 [1.8.x] Fixed #25212 -- Documented the RawSQL expression.
Backport of 97fa7fe961f961b6c93a11b50a7a1ed35c8bce8d from master
2015-08-05 08:15:30 -04:00
Alasdair Nicol
07546333c1 [1.8.x] Fixed password_reset signature in docs
Backport of 6d7a9d96fe57597719bc40491e3d428f01757ef3 from master
2015-08-04 13:57:45 -04:00
Caio Ariede
9f10c5cdf5 [1.8.x] Fixed #25136 -- Documented Count('X', distinct=True) in aggregate topic guide.
Backport of 3862c568ac1b920188ecfbe5cd8073160206d6b9 from master
2015-08-04 10:50:18 -04:00
Tim Graham
f5f03e3de9 [1.8.x] Clarified assertRaisesMessage() behavior with respect to the message.
Backport of 6bb4f07372fe748a701ad38e5c0d1182dab9e2c8 from master
2015-07-31 09:20:00 -04:00
Tim Graham
386a6dc3d7 [1.8.x] Fixed #25174 -- Moved some details of CheckMessage to the reference guide.
Backport of faa2a0f662ed6fe0b90d10e98cc8ee3795d9307c from master
2015-07-31 08:51:13 -04:00
Tim Graham
a66d843eec [1.8.x] Fixed #25159 -- Removed brackets from class/function/method signatures in docs.
Thanks hellbeast for the initial patch.

Backport of 87d55081ea398c65b2503d22ed3907a9175ec729 from master
2015-07-27 10:43:09 -04:00