from django.conf.urls import patterns, url from django.contrib.auth.decorators import login_required from group.views import GroupsListView, GroupsInfoView, GroupUpdateView, \ GroupDeleteView, GroupCreateView urlpatterns = patterns( '', url(r'^$', login_required(GroupsListView.as_view()), name="groups"), url(r'^(?P<pk>\d+)/$', login_required(GroupsInfoView.as_view()), name="info"), url(r'(?P<pk>\d+)/update/$', login_required(GroupUpdateView.as_view()), name="update"), url(r'(?P<pk>\d+)/delete/$', login_required(GroupDeleteView.as_view()), name="delete"), url(r'create_group$', login_required(GroupCreateView.as_view()), name="create"), )
urlpatterns = patterns( '', url(r'^$', GroupListView.as_view(), name='group_list'), url(r'^(?P<pkg>\d+)/$', GroupDetailView.as_view(), name='group_detail'), url(r'^(?P<pkg>\d+)/_update/$', GroupUpdateView.as_view(), name='group_update'), url(r'^(?P<pkg>\d+)/_delete/$', GroupDeleteView.as_view(), name='group_delete'), url(r'^_create/$', GroupCreateView.as_view(), name='group_create'), url(r'^(?P<pkg>\d+)/composition/group/$', GroupCompositionUpdateGroupView.as_view(), name='groupcomposition_group_update'), url(r'^(?P<pkg>\d+)/composition/group/(?P<pkgcg>\d+)/_update/$', GroupCompositionGroupUpdateView.as_view(), name='groupcompositiongroup_update'), url(r'^(?P<pkg>\d+)/composition/group/(?P<pkgcg>\d+)/_delete/$', GroupCompositionGroupDeleteView.as_view(), name='groupcompositiongroup_delete'), url(r'^(?P<pkg>\d+)/composition/people/$', GroupCompositionUpdatePeopleView.as_view(),
from django.urls import path from group.views import IndexView, VoteRecordView, EventView, VoteListView, VoteDetailView, GroupCreateView, \ GroupJoinView, GroupUnsubscribeView, EventCreateview, VoteCreateview urlpatterns = [ path('index/', IndexView.as_view(), name='index'), path('vote_record/', VoteRecordView.as_view(), name='vote_record'), path('event/', EventView.as_view(), name='event'), path('vote/', VoteListView.as_view(), name='vote'), path('vote_detail/', VoteDetailView.as_view(), name='vote_detail'), path('create_group/', GroupCreateView.as_view(), name='create_group'), path('join_group/', GroupJoinView.as_view(), name='join_group'), path('unsubscribe/', GroupUnsubscribeView.as_view(), name='unsubscribe'), path('create_event/', EventCreateview.as_view(), name='create_event'), path('create_vote/', VoteCreateview.as_view(), name='create_vote'), ]
GroupCompositionUpdateGroupView, GroupCompositionUpdatePeopleView, \ GroupCompositionGroupUpdateView, GroupCompositionGroupDeleteView, \ GroupCompositionPeopleUpdateView, GroupCompositionPeopleDeleteView, \ GroupUpdateView, GroupDeleteView urlpatterns = patterns( '', url(r'^$', GroupListView.as_view(), name='group_list'), url(r'^(?P<pkg>\d+)/$', GroupDetailView.as_view(), name='group_detail'), url(r'^(?P<pkg>\d+)/_update/$', GroupUpdateView.as_view(), name='group_update'), url(r'^(?P<pkg>\d+)/_delete/$', GroupDeleteView.as_view(), name='group_delete'), url(r'^_create/$', GroupCreateView.as_view(), name='group_create'), url(r'^(?P<pkg>\d+)/composition/group/$', GroupCompositionUpdateGroupView.as_view(), name='groupcomposition_group_update'), url(r'^(?P<pkg>\d+)/composition/group/(?P<pkgcg>\d+)/_update/$', GroupCompositionGroupUpdateView.as_view(), name='groupcompositiongroup_update'), url(r'^(?P<pkg>\d+)/composition/group/(?P<pkgcg>\d+)/_delete/$', GroupCompositionGroupDeleteView.as_view(), name='groupcompositiongroup_delete'), url(r'^(?P<pkg>\d+)/composition/people/$', GroupCompositionUpdatePeopleView.as_view(), name='groupcomposition_people_update'), url(r'^(?P<pkg>\d+)/composition/people/(?P<pkgcp>\d+)/_update/$', GroupCompositionPeopleUpdateView.as_view(), name='groupcompositionpeople_update'),
from django.conf.urls import patterns, url from group.views import GroupListView, GroupDetailView, GroupCreateView urlpatterns = patterns( '', url('^$', GroupListView.as_view(), name="ui-group-list"), url('^/(?P<pk>\d+)$', GroupDetailView.as_view(), name="ui-group-detail"), url(r'^/_create/$', GroupCreateView.as_view(), name="ui-group-create") )