Using the URLconf defined in mysite.urls, Django tried these URL patterns, in this order:
Your url conf regex is incorrect, you have to use $
instead of %
.
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
]
The $
acts as a regex flag to define the end of the regular expression.