| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
dotted path per deprecation timeline.
|
|
|
|
| |
deprecation timeline.
|
|
|
|
|
| |
The RegexURLResolver.resolve() method no longer returns a tuple.
It has returned a ResolverMatch object since commit e0fb90b2.
|
|
|
|
|
| |
Thanks jwa and lamby for the suggestions, and timgraham and jarshwah
for their reviews.
|
| |
|
|
|
|
|
| |
Forwardport of ae1d663b7913f6da233c55409c4973248372d302
from stable/1.8.x plus more.
|
|
|
|
|
|
|
| |
namespaces.
Set ResolverMatch.app_name to the full path of nested application
namespaces.
|
|
|
|
|
| |
Fixed reverse() to correctly handled nested namespace lookups
in current_app.
|
|
|
|
| |
imported uncallable views
|
|
|
|
|
|
|
|
| |
overriding script prefix.
Tests were using an undocumented keyword argument for easily overriding
script prefix while reversing. This is now changed into a test utility
which can be used as decorator or context manager.
|
|
|
|
|
|
| |
setting language
Thanks gbdlin for the initial patch and Tim Graham for the review.
|
|
|
|
|
|
| |
Prefix was treated as a part of the url pattern, which it is not.
Improved tests to conform with RFC 3986 which allows certain
characters in path segments without being escaped.
|
|
|
|
|
|
|
|
| |
propagated in includes
Propagated unnamed arguments as positional arguments into included
URLconfs if no named arguments are defined. Positional and keyword
arguments are never combined.
|
| |
|
|
|
|
|
| |
Also made RegexURLResolver.url_patterns a cached property for
consistency and efficiency.
|
|
|
|
| |
generators and dict comprehension
|
|
|
|
| |
string; not bytes
|
|
|
|
| |
importing it in admindocs.
|
|
|
|
| |
refs #23395.
|
|
|
|
|
|
| |
other hosts.
This is a security fix. Disclosure following shortly.
|
|
|
|
|
|
|
| |
And follow more closely the class of characters defined in the
RFC 3986.
Thanks Erik van Zijst for the report and the initial patch, and
Tim Graham for the review.
|
|
|
|
| |
urlresolvers.py
|
| |
|
|
|
|
|
|
|
|
|
|
| |
- 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).
|
|
|
|
|
|
|
|
| |
created using functools.partial.
Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054.
Thanks rcoup for the report.
|
|
|
|
|
|
| |
Thanks Benjamin Bach for the report and initial patch.
This is a security fix; disclosure to follow shortly.
|
|
|
|
|
|
|
|
|
|
|
|
| |
urlpattern
Fixed URL resolving in the case where an outer regex includes an inner
regex and both regexes use positional parameters instead of named
groups, causing the outer regex's parameters to override the inner
regex's.
Modified the regex url resolver so that it will concatenates and then
normalizes, instead of normalizing and then concatenating.
|
|
|
|
|
|
|
|
|
|
| |
empty.
The new error message now hints that the most likely issue
is a circular import.
Thanks to trac user elena for the report and to
bpeschier for the original patch.
|
| |
|
|
|
|
|
|
| |
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]
|
|
|
|
|
|
| |
better place.
Thanks apollo13: "reverse() shouldn't know about absolute/relative paths."
|
|
|
|
| |
This fixes redirecting to relative URLs with django.shortcuts.redirect.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Thanks Keryn Knight for the report.
|
|
|
|
| |
comprehensions.
|
|
|
|
| |
This was a shim for pre-Python 2.7 support.
|
|
|
|
| |
user which patterns were tried.
|
|
|
|
| |
block.super
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
reverse.
|
|
|
|
| |
characters in reverse().
|