Florian Apolloner
e1721ece48
[2.1.x] Fixed #29849 -- Fixed keep-alive support in runserver.
...
Ticket #25619 changed the default protocol to HTTP/1.1 but did not
properly implement keep-alive. As a "fix" keep-alive was disabled in
ticket #28440 to prevent clients from hanging (they expect the server to
send more data if the connection is not closed and there is no content
length set).
The combination of those two fixes resulted in yet another problem:
HTTP/1.1 by default allows a client to assume that keep-alive is
supported unless the server disables it via 'Connection: close' -- see
RFC2616 8.1.2.1 for details on persistent connection negotiation. Now if
the client receives a response from Django without 'Connection: close'
and immediately sends a new request (on the same tcp connection) before
our server closes the tcp connection, it will error out at some point
because the connection does get closed a few milli seconds later.
This patch fixes the mentioned issues by always sending 'Connection:
close' if we cannot determine a content length. The code is inefficient
in the sense that it does not allow for persistent connections when
chunked responses are used, but that should not really cause any
problems (Django does not generate those) and it only affects the
development server anyways.
Refs #25619 , #28440 .
Regression in ac756f16c5
.
Backport of 934acf1126
from master.
2018-11-20 17:44:03 -05:00
Tim Graham
ab2b86c124
[2.1.x] Doc'd purpose of "Database backend API" backwards incompatible changes section.
...
Backport of f436c82637
from master.
2018-11-17 16:04:59 -05:00
Tim Graham
b94279dd26
[2.1.x] Refs #28814 -- Doc'd Python 3.7 compatibility in Django 1.11.x.
...
Backport of 2fd21a1858
from master.
2018-11-17 16:04:33 -05:00
Claude Paroz
0991940c88
[2.1.x] Fixed #29959 -- Cached GEOS version in WKBWriter class.
...
Regression in f185d929fa
.
Backport of e7e5505902
from master.
2018-11-16 15:12:19 -05:00
Tim Graham
c0c7bda525
[2.1.x] Removed release date for 2.0.10 and 1.11.17.
...
Backport of 97cec6f75d
from master.
2018-11-16 09:34:39 -05:00
Prabakaran Kumaresshan
24a85f44c2
[2.1.x] Fixed #29864 -- Added link targets for low-level cache API.
...
Backport of 8250538bfc
from master.
2018-11-15 18:46:27 -05:00
Mathew Payne
2128c508a2
[2.1.x] Fixed #29952 -- Lowercased all passwords in contrib.auth's auth/common-passwords.txt.gz.
...
Backport of 26bb2611a5
from master.
2018-11-15 14:11:24 -05:00
Daniel Musketa
793e26bc4f
[2.1.x] Fixed typo in docs/ref/middleware.txt.
...
Backport of ca2856fb62
from master.
2018-11-14 09:48:06 -05:00
Katie McLaughlin
353afec70d
[2.1.x] Fixed #29940 -- Recommended using the ORM rather than raw SQL.
...
Backport of 9886dffdf4
from master.
2018-11-13 18:15:35 -05:00
Tobias Bengfort
b2ede89337
[2.1.x] Doc'd PermissionsMixin's usage of User.is_active and is_superuser.
...
Backport of b1243a55a5
from master.
2018-11-12 10:44:43 -05:00
Sergey Fedoseev
ae35cd3dcb
[2.1.x] Corrected docs regarding RegisterLookupMixin subclasses.
...
Backport of d48662122c
from master.
2018-11-12 10:20:50 -05:00
Mads Jensen
747253ce84
[2.1.x] Updated some links to https and new locations.
...
Backport of 961f8e9985
from master.
2018-11-10 17:41:02 -05:00
Tim Graham
da84fbfcb5
[2.1.x] Removed dead links to botbot.me.
...
Backport of d293d68f6a
from master.
2018-11-10 17:25:47 -05:00
Tom Forbes
497d825dde
[2.1.x] Removed obsolete and flaky GeoIP tests.
...
Backport of 8f90593e6f
from master.
2018-11-10 08:22:56 -05:00
Tim Graham
8bc244bd57
[2.1.x] Fixed #29941 -- Fixed missing variable in docs/ref/contrib/contenttypes.txt.
...
Regression in b47552b445
.
Backport of 0b98e8fdad
from master.
2018-11-09 19:50:24 -05:00
minusf
5d0de5852a
[2.1.x] Fixed signing.dumps() example for Python 3.
...
Backport of 545dae24fd
from master
2018-11-09 07:27:03 -05:00
mentix02
ec28343628
[2.1.x] Fixed #29933 -- Fixed typo in docs/intro/contributing.txt.
...
Backport of 413583e2e2
from master.
2018-11-08 17:12:31 -05:00
Tobias Bengfort
bd375f503e
[2.1.x] Fixed inconsistent indentation in docs/ref/contrib/auth.txt.
...
Backport of 9a63d840ff
from master.
2018-11-03 11:07:58 -04:00
Mice Pápai
394af709db
[2.1.x] Fixed typo in docs/internals/contributing/writing-code/coding-style.txt.
...
Backport of 5a2dd5ec53
from master
2018-11-02 16:00:26 +01:00
Carlton Gibson
28702011a0
[2.1.x] Updated expected date for 2.1.4 release.
...
Backport of 7e5cb46330
from master
2018-11-01 16:19:49 +01:00
Theofanis Despoudis
082833c969
[2.1.x] Fixed #27994 -- Documented ManifestFilesMixin.
...
Backport of 084536a9be
from master.
2018-11-01 11:15:31 -04:00
Carlton Gibson
2b263ed6be
[2.1.x] Added stub release notes for 2.1.4 release.
...
Backport of 74ddd0e83b
from master
2018-11-01 15:48:54 +01:00
Carlton Gibson
78cff67005
[2.1.x] Post-release version bump.
2018-11-01 15:45:51 +01:00
Carlton Gibson
d6226e3a82
[2.1.x] Bumped version for 2.1.3 release.
2018-11-01 15:07:09 +01:00
Carlton Gibson
6117367f0a
[2.1.x] Added release date for 2.1.3 release.
...
Backport of eb13e6cb9a
from master
2018-11-01 15:03:36 +01:00
Tim Graham
1df26757dd
[2.1.x] Fixed #22390 -- Doc'd possible server restart required in tutorial 6.
...
Backport of d8f83531c2
from master.
2018-10-31 20:50:28 -04:00
Tim Graham
cd7d6c8af7
[2.1.x] Fixed #29890 -- Fixed FileSystemStorage crash if concurrent saves try to create the same directory.
...
Regression in 632c4ffd9c
.
Backport of 98ef3829e9
from master.
2018-10-31 20:24:16 -04:00
Tim Graham
0f02d71995
[2.1.x] Fixed #29896 -- Fixed incorrect Model.save() cache relation clearing for foreign keys that use to_field.
...
Regression in ee49306176
.
Backport of f77fc56c96
from master.
2018-10-28 22:54:19 -04:00
Sergey Fedoseev
69603b3e71
[2.1.x] Fixed #29827 -- Fixed reuse of test databases with --keepdb on MySQL.
...
Regression in e1253bc26f
.
Backport of 9a88c6dd6a
from master.
2018-10-25 19:38:00 -04:00
Mayank Singhal
4529287af2
[2.1.x] Fixed #29879 -- Added CSRF_COOKIE_HTTPONLY to CSRF AJAX docs.
...
Backport of 76b3367035
from master
2018-10-25 12:07:38 -04:00
Mariusz Felisiak
81530222c8
[2.1.x] Fixed F841 flake8 warning.
...
Backport of 641742528a
from master.
2018-10-24 09:28:25 -04:00
Mariusz Felisiak
5aeffc0535
[2.1.x] Ignored flake8 W504 warnings.
...
W504 is mutually exclusive with W503 that we follow.
Backport of 58d1e9aa8a
from master.
2018-10-24 09:25:34 -04:00
Jon Dufresne
8a348c5fd0
[2.1.x] Refs #29877 -- Made diveinto.org URLs HTTPS.
...
Backport of 136a900ef9
from master
2018-10-23 15:03:40 +02:00
za
fbd95ce9bb
[2.1.x] Fixed #29877 -- Replaced diveintopython3.net with diveinto.org/python3/.
...
Backport of b0d716cbff
from master
2018-10-23 11:56:41 +02:00
Tim Graham
54732e2891
[2.1.x] Fixed #29880 -- Fixed typo in docs/topics/auth/default.txt.
...
Backport of 043407ec7e
from master.
2018-10-22 15:19:53 -04:00
Atul Varma
021f67be4b
[2.1.x] Removed "encoding" description in GIS tutorial.
...
An omission in 388165ade4
.
Backport of 3deea61f26
from master
2018-10-21 12:14:57 -04:00
Adam Allred
0d5d8ed322
[2.1.x] Fixed #29774 -- Fixed django-admin shell hang on startup.
...
sys.stdin.read() blocks waiting for EOF in shell.py which will
likely never come if the user provides input on stdin via the
keyboard before the shell starts. Added check for a tty to
skip reading stdin if it's not present.
This still allows piping of code into the shell (which should
have no TTY and should have an EOF) but also doesn't cause it
to hang if multi-line input is provided.
Backport of 4e78e389b1
from master.
2018-10-19 20:45:55 -04:00
Tim Graham
4acdba42a6
[2.1.x] Fixed #29858 -- Clarified docs regarding CSRF token header name.
...
Backport of a29fce8984
from master.
2018-10-19 19:35:25 -04:00
Andy Chosak
822f111b86
[2.1.x] Updated Jinja2 static tag example to use django.templatetags.
...
As of cf546e11ac
, this is the
canonical way to invoke the static tag.
Backport of 084573c715
from master.
2018-10-18 19:20:15 -04:00
Tim Graham
9982babbf9
[2.1.x] Replaced CVE/ticket roles with extlinks.
...
Backport of 44f98f7880
from master.
2018-10-17 12:05:50 -04:00
aspalding
0df7ea1b87
[2.1.x] Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and lists.
...
Regression in fc6528b25a
.
Backport of 834c4ec8e4
,
217f82d713
, and
dc5e75d419
from master.
2018-10-17 11:40:02 -04:00
Tom Dyson
0f611fb1fa
[2.1.x] Removed obsolete "ugly URL" reference.
...
Backport of 6752c2756e
from master.
2018-10-17 10:21:12 -04:00
Çağıl
554fd6cd76
[2.1.x] Added a paragraph in docs/intro/contributing.txt.
...
Backport of 38f3de86bd
from master.
2018-10-16 16:11:13 -04:00
Taoufik
6efe2ba057
[2.1.x] Fixed typo in django/utils/datastructures.py.
...
Backport of f07091a30f
from master
2018-10-14 11:20:52 -04:00
Peter Inglesby
1996889522
[2.1.x] Removed unused fields from aggregation docs.
...
Backport of a1ffbfb801
from master
2018-10-13 21:14:14 -04:00
Adam Johnson
4d7fbbdd7d
[2.1.x] Simplified deployment checklist docs on customizing error views.
...
Backport of cecd656184
from master.
2018-10-11 10:26:03 -04:00
Andrea Rabbaglietti
b9b284831a
[2.1.x] Emphasized that ForeignKey.on_delete doesn't create a SQL constraint.
...
Backport of 1b49b792e9
from master.
2018-10-10 14:57:01 -04:00
Kate Berry
8985759f72
[2.1.x] Improved tone in docs/ref/settings.txt.
...
Backport of b8b1d8cad6
from master.
2018-10-09 20:53:53 -04:00
Jon Dufresne
6cb5285f29
[2.1.x] Refs #29784 -- Switched to https:// links where available.
...
Backport of 82f286cf6f
from master.
2018-10-09 20:52:43 -04:00
Jon Dufresne
ec0803b1be
[2.1.x] Capitalized "Python" in docs and comments.
...
Backport of e90af8bad4
from master.
2018-10-09 20:50:31 -04:00