@classmethod
    def urls(cls, name_prefix=None):
        return patterns('',
            url(r'^$', cls.as_list(), name=cls.build_url_name('list', name_prefix)),
            url(r'^(?P<pk>\d+)/$', cls.as_detail(), name=cls.build_url_name('detail', name_prefix)),
        )
A convenience method for hooking up the URLs.
dataset/ETHPy150Open toastdriven/restless/restless/dj.py/DjangoResource.urls