Regular expressions don't seem to work with the path()
function with the following arguments: path(r'^$', views.index, name="index")
.
It should be like this: path('', views.index, name="index")
.
The 1st argument must be blank to enter a regular expression.