| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
from reporting 404s when Referer = URL.
|
|
|
|
|
|
| |
a slash twice in CommonMiddleware.
This speeds up affected requests by about 5%.
|
| |
|
| |
|
|
|
|
| |
DISALLOWED_USER_AGENTS response
|
| |
|
|
|
|
| |
BrokenLinkEmailMiddleware
|
|
|
|
| |
test.
|
|
|
|
| |
Thanks Carl Meyer for the report and Tim Graham for the review.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
StreamingHttpResponse
make_bytes() assumed that if the Content-Encoding header is set, then
everything had already been dealt with bytes-wise, but in a streaming
situation this was not necessarily the case.
make_bytes() is only called when necessary when working with a
StreamingHttpResponse iterable, but by that point the middleware has
added the Content-Encoding header and thus make_bytes() tried to call
bytes(value) (and dies). If it had been a normal HttpResponse,
make_bytes() would have been called when the content was set, well
before the middleware set the Content-Encoding header.
This commit removes the special casing when Content-Encoding is set,
allowing unicode strings to be encoded during the iteration before they
are e.g. gzipped. This behaviour was added a long time ago for #4969 and
it doesn't appear to be necessary any more, as everything is correctly
made into bytes at the appropriate places.
Two new tests, to show that supplying non-ASCII characters to a
StreamingHttpResponse works fine normally, and when passed through the
GZip middleware (the latter dies without the change to make_bytes()).
Removes the test with a nonsense Content-Encoding and Unicode input - if
this were to happen, it can still be encoded as bytes fine.
|
|
|
|
| |
APPEND_SLASH redirect error.
|
|
|
|
| |
files.
|
| |
|
|
|
|
| |
imports to range
|
|
|
|
| |
settings.DISALLOWED_USER_AGENTS.
|
|
|
|
| |
CommonMiddleware.response_redirect_class.
|
|
|
|
| |
Django test suite.
|
|
|
|
|
|
|
|
|
| |
--deploy option
Thanks Carl Meyer for django-secure and for reviewing.
Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and
Jorge Carleitao for reviews.
|
|
|
|
| |
url().
|
|
|
|
| |
comply with RFC 2616.
|
|
|
|
|
|
|
| |
It prevented the GZipMiddleware from compressing some data types even on
more recent version of IE where the corresponding bug was fixed.
Thanks Aaron Cannon for the report and Tim Graham for the review.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- Fixed bug in get_callable() that caused resolve() to put a string
in ResolverMatch.func.
- Made ResolverMatch.url_name match the actual url name (or None).
- Updated tests that used the string value in ResolverMatch.func, and
added regression tests for this bug.
- Corrected test urls whose dummy view paths caused failures (behavior
that was previously masked by this bug).
|
| |
|
|
|
|
| |
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
|
|
|
|
| |
deprecation timeline.
|
|
|
|
| |
timeline.
|
|
|
|
|
|
|
| |
to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This (nearly) completes the work to isolate all the test modules from
each other. This is now more important as importing models from another
module will case PendingDeprecationWarnings if those modules are not in
INSTALLED_APPS. The only remaining obvious dependencies are:
- d.c.auth depends on d.c.admin (because of the is_admin flag to some
views), but this is not so important and d.c.admin is in
always_installed_apps
- test_client_regress depends on test_client. Eventually these should
become a single module, as the split serves no useful purpose.
|
| |
|
|
|
|
| |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
|
|
|
| |
Refs #20680.
|
| |
|
|
|
|
| |
Fixed #20483.
|
|
|
|
|
|
|
| |
BrokenLinkEmailsMiddleware
Thanks Ram Rachum for the report and the initial patch, and Simon
Charette for the review.
|
|
|
|
|
|
| |
django.test.utils.
This mixin is useful whenever deprecating a large part of Django.
|
|
|
|
|
|
| |
contains non-ascii
Thanks srusskih for the report and Aymeric Augustin for the review.
|
|
|
|
| |
Regression in d0561242.
|
|
|
|
| |
Since unmanaged == autocommit, there's nothing to commit or roll back.
|
| |
|
|
|
|
| |
It's synchronized with the autocommit flag.
|
|
|
|
|
|
|
|
|
| |
For users who didn't activate autocommit in their database options, this
is backwards-incompatible in "non-managed" aka "auto" transaction state.
This state now uses database-level autocommit instead of ORM-level
autocommit.
Also removed the uses_autocommit feature which lost its purpose.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
enter_transaction_management() was nearly always followed by managed().
In three places it wasn't, but they will all be refactored eventually.
The "forced" keyword argument avoids introducing behavior changes until
then.
This is mostly backwards-compatible, except, of course, for managed
itself. There's a minor difference in _enter_transaction_management:
the top self.transaction_state now contains the new 'managed' state
rather than the previous one. Django doesn't access
self.transaction_state in _enter_transaction_management.
|