from django.conf.urls import url from .views import UserListView, UserAddView, UserUpdateView, UserDeleteView, UserDetailView app_name = 'users' urlpatterns = [ url(r'^$', UserListView.as_view(), name='user-list'), url(r'^(?P[0-9]+)/$', UserDetailView.as_view(), name='user-detail'), url(r'^add/$', UserAddView.as_view(), name='user-add'), url(r'^(?P[0-9]+)/edit/$', UserUpdateView.as_view(), name='user-edit'), url(r'^(?P[0-9]+)/delete/$', UserDeleteView.as_view(), name='user-delete'), ]