1
You have missed out the '
to end the string (before the comma in r'^,
. Ideally, you should add a $
as well:
url(r'^$', views.index, name='index'),
Note that your text editor or IDE may do syntax highlighting to help you spot this question – note that in your question, Stack Overflow has all of ^, views.index, name=
in the same colour, to show that it’s a single string.
Source:stackexchange.com