Loading django/urls/base.py +0 −1 Original line number Diff line number Diff line Loading @@ -153,7 +153,6 @@ def is_valid_path(path, urlconf=None): False otherwise. This is a convenience method to make working with "is this a match?" cases easier, avoiding try...except blocks. """ from django.urls.base import resolve try: resolve(path, urlconf) return True Loading Loading
django/urls/base.py +0 −1 Original line number Diff line number Diff line Loading @@ -153,7 +153,6 @@ def is_valid_path(path, urlconf=None): False otherwise. This is a convenience method to make working with "is this a match?" cases easier, avoiding try...except blocks. """ from django.urls.base import resolve try: resolve(path, urlconf) return True Loading