[Answered ]-Unable to configure views, urls.py SyntaxError: invalid syntax

2👍

In your code

url(r'^(?P<poll_id>\d+/vote/$', views.vote, name='vote'),

should be

url(r'^(?P<poll_id>\d+)/vote/$', views.vote, name='vote'),

You missed the parentness and you missed a comma after url(r'^$', views.index, name='index').

👤iMom0

Leave a comment