import Resource
urlpatterns = patterns(
'',
url(r'^a/(?P<id>\d+)$', Resource(a),{'emitter_format': 'ext-json'}),
url(r'^b/(?P<id>\d+)$', Resource(b),{'emitter_format': 'ext-json'}),
url(r'^с/(?P<id>\d+)$', Resource(b),{'emitter_format': 'ext-json'}),
}
Хочется обойтись 1-ой строчкой:
т е например:
url(r'^(.*)/(?P<id>\d+)$', Resource(b),{'emitter_format': 'ext-json'}),
url(r'^(.*?)/(?P<id>\d+)$', views.test,{'emitter_format': 'ext-json'}),