-
-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy pathurls.py
More file actions
25 lines (21 loc) · 559 Bytes
/
urls.py
File metadata and controls
25 lines (21 loc) · 559 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from django.conf.urls import patterns, url
from user_sessions.views import SessionDeleteOtherView
from .views import SessionListView, SessionDeleteView
urlpatterns = patterns(
'',
url(
regex=r'^$',
view=SessionListView.as_view(),
name='session_list',
),
url(
regex=r'^other/delete/$',
view=SessionDeleteOtherView.as_view(),
name='session_delete_other',
),
url(
regex=r'^(?P<pk>\w+)/delete/$',
view=SessionDeleteView.as_view(),
name='session_delete',
),
)