In a django online course, the instructor has us use the url() function to call views and utilize regular expressions in the urlpatterns list. I\'ve seen other
url()
Regular expressions don't seem to work with the path() function with the following arguments: path(r'^$', views.index, name="index").
path()
path(r'^$', views.index, name="index")
It should be like this: path('', views.index, name="index").
path('', views.index, name="index")
The 1st argument must be blank to enter a regular expression.