Django url pattern that have a number parameter is:
url(r\'^polls/(?P\\d+)/$\', \'polls.views.detail\')
What will be the correct
Depends on what characters you care about. Like the docs say, \w will give you an alphanumeric character or an underscore.
\w