old_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import, unicode_literals
  
  from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
      # URL pattern for the UserListView
      url(
          regex=r'^abort/(?P<pk>[0-9]+)/$',
          view=views.GroupsAbortView.as_view(),
          name="groups-abort"
      ),    
      url(
          regex=r'^all/$',
          view=views.GroupsListView.as_view(),
          name="groups-alllist"
      ),    
      url(
          regex=r'^create/$',
          view=views.GroupsCreateView.as_view(),
          name="groups-create"
      ),
      url(
          regex=r'^(?P<pk>[0-9]+)/$',
          view=views.GroupsDetailView.as_view(),
          name='groups-detail'
      ),
      url(
          regex=r'^join/(?P<pk>[0-9]+)/$',
          view=views.GroupsJoinView.as_view(),
          name="groups-join"
      ),    
      url(
          regex=r'^$',
          view=views.GroupsMyListView.as_view(),
          name='groups-mylist'
      ),
      url(
          regex=r'^following/$',
          view=views.GroupsFollowingListView.as_view(),
          name='groups-followinglist'
          ),
      url(
          regex=r'^update/(?P<pk>[0-9]+)/$',
          view=views.GroupsUpdateView.as_view(),
          name='groups-update'
      ),
  
      # Follow Group
      url(
          regex=r'^follow/(?P<pk>[0-9]+)/$',
          view=views.follow_group,
          name='groups-follow'
      ),
      # Unfollow Group
      url(
          regex=r'^unfollow/(?P<pk>[0-9]+)/$',
          view=views.unfollow_group,
          name='groups-unfollow'
      ),
  ]
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import, unicode_literals
  
  from django.conf.urls import url
  
  from . import views
  
  urlpatterns = [
      # URL pattern for the GroupsAbortView
      url(
          regex=r'^abort/(?P<pk>[0-9]+)/$',
          view=views.GroupsAbortView.as_view(),
          name="groups-abort"
      ),
      # URL pattern for the GroupsListView
      url(
          regex=r'^all/$',
          view=views.GroupsListView.as_view(),
          name="groups-alllist"
      ),
      # URL pattern for the GroupsCreateView
      url(
          regex=r'^create/$',
          view=views.GroupsCreateView.as_view(),
          name="groups-create"
      ),
      # URL pattern for the GroupsDetailView
      url(
          regex=r'^(?P<pk>[0-9]+)/$',
          view=views.GroupsDetailView.as_view(),
          name='groups-detail'
      ),
      # URL pattern for the GroupsJoinView
      url(
          regex=r'^join/(?P<pk>[0-9]+)/$',
          view=views.GroupsJoinView.as_view(),
          name="groups-join"
      ),
      # URL pattern for the GroupsMyListView
      url(
          regex=r'^$',
          view=views.GroupsMyListView.as_view(),
          name='groups-mylist'
      ),
      # URL pattern for the GroupsFollowingListView
      url(
          regex=r'^following/$',
          view=views.GroupsFollowingListView.as_view(),
          name='groups-followinglist'
      ),
      # URL pattern for the GroupsUpdateView
      url(
          regex=r'^update/(?P<pk>[0-9]+)/$',
          view=views.GroupsUpdateView.as_view(),
          name='groups-update'
      ),
      # URL pattern for the follow Group action
      url(
          regex=r'^follow/(?P<pk>[0-9]+)/$',
          view=views.follow_group,
          name='groups-follow'
      ),
      # URL pattern for the unfollow Group action
      url(
          regex=r'^unfollow/(?P<pk>[0-9]+)/$',
          view=views.unfollow_group,
          name='groups-unfollow'
      ),
  ]
  
subject: 更新 modules groups/urls.py, 修正 PEP8 警告，同時新增註解