from django.conf.urls.defaults import patterns urlpatterns = patterns('blogpost.views', (r'^$', 'BlogPostRoot'), (r'^(?P[^/]+)/$', 'BlogPostInstance'), (r'^(?P[^/]+)/comments/$', 'CommentRoot'), (r'^(?P[^/]+)/comments/(?P[^/]+)/$', 'CommentInstance'), )