2016-08-09 06:42:21 +00:00
|
|
|
from django.conf.urls import url
|
2016-08-14 09:21:04 +00:00
|
|
|
|
2016-08-16 14:13:06 +00:00
|
|
|
from .views import UserListView, UserAddView, UserUpdateView, UserDeleteView, UserDetailView
|
2016-08-09 06:42:21 +00:00
|
|
|
|
|
|
|
app_name = 'users'
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-08-14 09:21:04 +00:00
|
|
|
url(r'^$', UserListView.as_view(), name='user-list'),
|
2016-08-16 14:13:06 +00:00
|
|
|
url(r'^(?P<pk>[0-9]+)/$', UserDetailView.as_view(), name='user-detail'),
|
2016-08-14 11:18:41 +00:00
|
|
|
url(r'^add/$', UserAddView.as_view(), name='user-add'),
|
2016-08-15 16:09:48 +00:00
|
|
|
url(r'^(?P<pk>[0-9]+)/edit/$', UserUpdateView.as_view(), name='user-edit'),
|
2016-08-16 14:13:06 +00:00
|
|
|
url(r'^(?P<pk>[0-9]+)/delete/$', UserDeleteView.as_view(), name='user-delete'),
|
2016-08-09 06:42:21 +00:00
|
|
|
]
|