The url() function in django has been deprecated since version 3.1. Here's how backwards compatibility is being handled;
def url(regex, view, kwargs=None, name=None):
warnings.warn(
'django.conf.urls.url() is deprecated in favor of '
'django.urls.re_path().',
RemovedInDjango40Warning,
stacklevel=2,
)
return re_path(regex, view, kwargs, name)
For now, re_path() is returned when the url() function is called. When the function is completely removed, will the projects that use it have to change their source code?