These is my django URLconf:
urlpatterns = patterns('',
('^hello/$', hello),
(r'^polls/$', 'mysite.polls.views.index'),
(r'^polls/(?P<poll_id>\d+)/$', 'mysite.polls.views.detail'),
(r'^polls/(?P<poll_id>\d+)/results/$', 'mysite.polls.views.results'),
(r'^polls/(?P<poll_id>\d+)/vote/$', 'mysite.polls.views.vote'),
(r'^admin/', include(admin.site.urls)),
)
I don't understand what the r in this regex does:
r'^polls/$
I don't understand what this Regex does:
(?P<poll_id>\d+)
And I don't understand why in:
(r'^admin/', include(admin.site.urls))
There is no $
sign and it still works...
I don't understand what URLconf I have to add, to see a site under http://127.0.0.1:8000/