Ejemplo n.º 1
0
    path('top-posts/exclusions/',
         TopPostsExcludedCommunities.as_view(),
         name='legacy-top-posts-excluded-communities'),
    path('top-posts/exclusions/search/',
         SearchTopPostsExcludedCommunities.as_view(),
         name='legacy-search-top-posts-excluded-communities'),
    path('search/', SearchCommunities.as_view(), name='search-communities'),
    path('<str:community_name>/', include(community_patterns)),
]

connections_patterns = [
    path('', Connections.as_view(), name='connections'),
    path('connect/', ConnectWithUser.as_view(), name='connect-with-user'),
    path('confirm/', ConfirmConnection.as_view(), name='confirm-connection'),
    path('disconnect/',
         DisconnectFromUser.as_view(),
         name='disconnect-from-user'),
    path('update/', UpdateConnection.as_view(), name='update-connection'),
]

circles_patterns = [
    path('', Circles.as_view(), name='circles'),
    path('name-check/', CircleNameCheck.as_view(), name='circle-name-check'),
    path('<int:circle_id>/', CircleItem.as_view(), name='circle'),
]

lists_patterns = [
    path('', Lists.as_view(), name='lists'),
    path('name-check/', ListNameCheck.as_view(), name='list-name-check'),
    path('<int:list_id>/', ListItem.as_view(), name='list'),
]
Ejemplo n.º 2
0
    path('trending/', TrendingCommunities.as_view(), name='trending-communities'),
    path('joined/', JoinedCommunities.as_view(), name='joined-communities'),
    path('joined/search/', SearchJoinedCommunities.as_view(), name='search-joined-communities'),
    path('favorites/', FavoriteCommunities.as_view(), name='favorite-communities'),
    path('administrated/', AdministratedCommunities.as_view(), name='administrated-communities'),
    path('moderated/', ModeratedCommunities.as_view(), name='moderated-communities'),
    path('name-check/', CommunityNameCheck.as_view(), name='community-name-check'),
    path('search/', SearchCommunities.as_view(), name='search-communities'),
    path('<str:community_name>/', include(community_patterns)),
]

connections_patterns = [
    path('', Connections.as_view(), name='connections'),
    path('connect/', ConnectWithUser.as_view(), name='connect-with-user'),
    path('confirm/', ConfirmConnection.as_view(), name='confirm-connection'),
    path('disconnect/', DisconnectFromUser.as_view(), name='disconnect-from-user'),
    path('update/', UpdateConnection.as_view(), name='update-connection'),
]

circles_patterns = [
    path('', Circles.as_view(), name='circles'),
    path('name-check/', CircleNameCheck.as_view(), name='circle-name-check'),
    path('<int:circle_id>/', CircleItem.as_view(), name='circle'),
]

lists_patterns = [
    path('', Lists.as_view(), name='lists'),
    path('name-check/', ListNameCheck.as_view(), name='list-name-check'),
    path('<int:list_id>/', ListItem.as_view(), name='list'),
]