diff --git a/django/conf/urls/__init__.py b/django/conf/urls/__init__.py index 311cd70b84..c58e581cd9 100644 --- a/django/conf/urls/__init__.py +++ b/django/conf/urls/__init__.py @@ -17,5 +17,6 @@ def url(regex, view, kwargs=None, name=None): 'django.conf.urls.url() is deprecated in favor of ' 'django.urls.re_path().', RemovedInDjango40Warning, + stacklevel=2, ) return re_path(regex, view, kwargs, name)