Django url pattern that have a number parameter is:
url(r\'^polls/(?P\\d+)/$\', \'polls.views.detail\')
What will be the correct
In newer versions of Django such as 2.1 you can use
path('polls/', views.polls_detail)
as given here Django URL dispatcher
def polls_detail(request,poll_id): #process your request here