Exemple #1
0
from django.conf.urls import url

from zds.forum import feeds
from zds.forum.views import CategoriesForumsListView, CategoryForumsDetailView, ForumTopicsListView, \
    TopicPostsListView, TopicNew, TopicEdit, FindTopic, FindTopicByTag, PostNew, PostEdit, PostSignal, \
    PostUseful, PostUnread, FindPost, solve_alert, ManageGitHubIssue

urlpatterns = [

    # Feeds
    url(r'^flux/messages/rss/$',
        feeds.LastPostsFeedRSS(),
        name='post-feed-rss'),
    url(r'^flux/messages/atom/$',
        feeds.LastPostsFeedATOM(),
        name='post-feed-atom'),
    url(r'^flux/sujets/rss/$',
        feeds.LastTopicsFeedRSS(),
        name='topic-feed-rss'),
    url(r'^flux/sujets/atom/$',
        feeds.LastTopicsFeedATOM(),
        name='topic-feed-atom'),

    # Developers warning: if you update something here, check and update help_text
    # on Category slug field

    # Moderation
    url(r'^resolution_alerte/$', solve_alert, name='forum-solve-alert'),

    # Viewing a thread
    url(r'^sujet/nouveau/$', TopicNew.as_view(), name='topic-new'),
Exemple #2
0
# coding: utf-8

from django.conf.urls import url

from zds.forum import feeds
from zds.forum.views import CategoriesForumsListView, CategoryForumsDetailView, ForumTopicsListView, \
    TopicPostsListView, TopicNew, TopicEdit, FindTopic, FindTopicByTag, PostNew, PostEdit, \
    PostUseful, PostUnread, FindPost, solve_alert, ManageGitHubIssue

urlpatterns = [

    # Feeds
    url(r'^flux/messages/rss/$', feeds.LastPostsFeedRSS(), name='post-feed-rss'),
    url(r'^flux/messages/atom/$', feeds.LastPostsFeedATOM(), name='post-feed-atom'),

    url(r'^flux/sujets/rss/$', feeds.LastTopicsFeedRSS(), name='topic-feed-rss'),
    url(r'^flux/sujets/atom/$', feeds.LastTopicsFeedATOM(), name='topic-feed-atom'),

    # Developers warning: if you update something here, check and update help_text
    # on Category slug field

    # Moderation
    url(r'^resolution_alerte/$', solve_alert, name='forum-solve-alert'),

    # Viewing a thread
    url(r'^sujet/nouveau/$', TopicNew.as_view(), name='topic-new'),
    url(r'^sujet/editer/$', TopicEdit.as_view(), name='topic-edit'),
    url(r'^sujet/github/(?P<pk>\d+)/$', ManageGitHubIssue.as_view(), name='manage-issue'),
    url(r'^sujet/(?P<topic_pk>\d+)/(?P<topic_slug>.+)/$', TopicPostsListView.as_view(), name='topic-posts-list'),
    url(r'^sujets/membre/(?P<user_pk>\d+)/$', FindTopic.as_view(), name='topic-find'),
    url(r'^sujets/tag/(?P<tag_pk>\d+)/(?P<tag_slug>.+)/$', FindTopicByTag.as_view(), name='topic-tag-find'),