Django 1.11 uses regular expression to check for appropriate url. eg
url(r'^(?P<year>[0-9]{4})/$', views.abc),
Here I could check that my year is 4 digits.
The new way introduced is like
path('<int:year>/', views.abc),
Is there a default way to use restrictions using path()
?