| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
Commit 79558c78 cleaned up the (undocumented) interface of Resolver404
exception, which breaks compatibility with code messing with .args[0]
directly. Revert the cleanup part and simply leave the fix itself.
|
|
|
|
|
|
|
|
|
|
|
| |
When django.core.urlresolvers.resolve was called from a view, failed
and the exception was propagated and rendered by technical_404_response,
the URL mentioned on the page was the current URL instead of the URL
passed to resolve().
Fixed by using the path attribute from the Resolver404 exception instead
of request.path_info. Also cleaned up the exceptions to use standard
named parameters instead of stuffing a dict in args[0]
|
| |
|
|
|
|
|
|
|
| |
Added comments in the three empty models.py files that are still needed.
Adjusted the test runner to add applications corresponding to test
labels to INSTALLED_APPS even when they don't have a models module.
|
| |
|
|
|
|
| |
backported file
|
|
|
|
|
|
|
|
|
|
| |
Replaced the custom, untested memoize with a similar decorator from Python's
3.2 stdlib. Although some minor performance degradation (see ticket), it is
expected that in the long run lru_cache will outperform memoize once it is
implemented in C.
Thanks to EvilDMP for the report and Baptiste Mispelon for the idea of
replacing memoize with lru_cache.
|
|
|
|
| |
Signed-off-by: Jason Myers <jason@jasonamyers.com>
|
| |
|
| |
|
| |
|
|
|
|
| |
refs #21230.
|
| |
|
|
|
|
|
|
|
| |
* Removed trailing whitespace.
* Added newline to EOF if missing.
* Removed blank lines at EOF.
* Removed some stray tabs.
|
|
|
|
| |
We have always been at war with trailing backslashes.
|
|
|
|
| |
Thanks Keryn Knight for the report.
|
|
|
|
|
| |
Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
|
|
|
|
| |
Refs #20680.
|
|
|
|
| |
user which patterns were tried.
|
|
|
|
|
|
|
|
|
|
|
|
| |
SuspiciousOperation.
SuspiciousOperations have been differentiated into subclasses, and
are now logged to a 'django.security.*' logger. SuspiciousOperations
that reach django.core.handlers.base.BaseHandler will now return a 400
instead of a 500.
Thanks to tiwoc for the report, and Carl Meyer and Donald Stufft
for review.
|
|
|
|
| |
Gives much nicer errors when it fails.
|
|
|
|
|
|
| |
URLs in response middlewares
and streamed responses with respect to per-request urlconf.
|
|
|
|
| |
reverse.
|
|
|
|
| |
characters in reverse().
|
|
|
|
|
|
| |
always exists.
Obviously it isn't set until the URL is resolved.
|
|
|
|
| |
modeltests/regressiontests.
|
|
|