from django.conf.urls.defaults import * from views import * urlpatterns = patterns('', url(r'^$', ReposView.as_view()), url(r'^/$', ReposView.as_view()), url(r'^repo/list/$', ReposView.as_view(), name='repos'), url(r'^repo/(?P[^/]+)/$', RepoView.as_view(), name='repo'), url(r'^dir/(?P[^/]+)/root/$', RepoDirPathView.as_view()), url(r'^dir/(?P[^/]+)/$', RepoDirPathView.as_view(), name='repo-dir-path'), url(r'^dir/(?P[^/]+)/(?P[^/]+)/$', RepoDirIdView.as_view(), name='repo-dirr-id'), url(r'^file/(?P[^/]+)/(?P[^/]+)/$', RepoFileView.as_view(), name='repo-file'), )