From Django documentation for url
url(regex, view, kwargs=None, name=None)
This function
is an alias todjango.urls.re_path()
. It’s likely to be deprecated in
a future release.
Key difference between path
and re_path
is that path
uses route without regex
You can use re_path
for complex regex calls and use just path
for simpler lookups