diff --git a/django/core/urlresolvers.py b/django/core/urlresolvers.py index 80a390e6c1..b5cdccb730 100644 --- a/django/core/urlresolvers.py +++ b/django/core/urlresolvers.py @@ -82,7 +82,7 @@ class RegexURLResolver: if match: return match # None of the regexes matched, so raise a 404. - raise Http404, "Tried all URL patterns but didn't find a match for %s" % app_path + raise Http404, "Tried all URL patterns but didn't find a match for %r" % app_path class Error404Resolver: def __init__(self, callback):