Exemplo n.º 1
0
 url(r'^$', PostBoardView.as_view(), name='tribune-board'),
 url(r'^noscript/$', PostBoardNoScriptView.as_view(), name='tribune-board-noscript'),
 
 #url(r'^readme/$', ReadmePage.as_view(), name='tribune-readme'),
 
 # For default tribune
 url(r'^discovery.config$', ConfigDiscoveryView.as_view(), name='tribune-config'),
 
 # Remote backend for specific targeted clocks
 url(r'^clock/(?P<clock>[:\d]{5,9})/$', ClockJsonView.as_view(), name='tribune-clock-remote'),
 
 # Message posting views
 url(r'^post/$', PostRemotePlainView.as_view(), name='tribune-post-plain'),
 url(r'^post/json/$', PostRemoteJsonView.as_view(), name='tribune-post-json'),
 url(r'^post/xml/$', PostRemoteXmlView.as_view(), name='tribune-post-xml'),
 url(r'^crap/post.xml$', PostRemoteCrapXmlView.as_view(), name='tribune-post-xml-crap'),
 
 # Remote backend views for message list
 url(r'^remote/$', RemotePlainView.as_view(), name='tribune-remote-plain'),
 url(r'^remote/json/$', RemoteJsonView.as_view(), name='tribune-remote-json'),
 url(r'^remote/xml/$', RemoteXmlView.as_view(), name='tribune-remote-xml'),
 url(r'^crap/remote.xml$', RemoteCrapXmlView.as_view(), name='tribune-remote-xml-crap'),
 
 # Message posting views
 url(r'^urls/$', UrlArchivesView.as_view(), name='tribune-url-archives'),
 
 # Duplicated previous urls for channel tribunes
 url(r'^(?P<channel_slug>[-\w]+)/$', PostBoardView.as_view(), name='tribune-channel-board'),
 url(r'^(?P<channel_slug>[-\w]+)/noscript/$', PostBoardNoScriptView.as_view(), name='tribune-channel-board-noscript'),
 
 url(r'^(?P<channel_slug>[-\w]+)/discovery.config', ConfigDiscoveryView.as_view(), name='tribune-channel-config'),
Exemplo n.º 2
0
from djangotribune.views.discovery import ConfigDiscoveryView

urlpatterns = patterns(
    "",
    url(r"^$", PostBoardView.as_view(), name="tribune-board"),
    url(r"^noscript/$", PostBoardNoScriptView.as_view(), name="tribune-board-noscript"),
    url(r"^readme/$", ReadmePage.as_view(), name="tribune-readme"),
    # For default tribune
    url(r"^discovery.config$", ConfigDiscoveryView.as_view(), name="tribune-config"),
    # Remote backend for specific targeted clocks
    url(r"^clock/(?P<clock>\d+)/$", ClockJsonView.as_view(), name="tribune-clock-remote"),
    # Message posting views
    url(r"^post/$", PostRemotePlainView.as_view(), name="tribune-post-plain"),
    url(r"^post/json/$", PostRemoteJsonView.as_view(), name="tribune-post-json"),
    url(r"^post/xml/$", PostRemoteXmlView.as_view(), name="tribune-post-xml"),
    url(r"^post/xml/crap/$", PostRemoteCrapXmlView.as_view(), name="tribune-post-xml-crap"),
    # Remote backend views for message list
    url(r"^remote/$", RemotePlainView.as_view(), name="tribune-remote-plain"),
    url(r"^remote/json/$", RemoteJsonView.as_view(), name="tribune-remote-json"),
    url(r"^remote/xml/$", RemoteXmlView.as_view(), name="tribune-remote-xml"),
    url(r"^remote/xml/crap/$", RemoteCrapXmlView.as_view(), name="tribune-remote-xml-crap"),
    # Duplicated previous urls for channel tribunes
    url(r"^(?P<channel_slug>[-\w]+)/$", PostBoardView.as_view(), name="tribune-channel-board"),
    url(
        r"^(?P<channel_slug>[-\w]+)/noscript/$", PostBoardNoScriptView.as_view(), name="tribune-channel-board-noscript"
    ),
    url(r"^(?P<channel_slug>[-\w]+)/discovery.config", ConfigDiscoveryView.as_view(), name="tribune-channel-config"),
    url(
        r"^(?P<channel_slug>[-\w]+)/clock/(?P<clock>\d+)/$",
        ClockJsonView.as_view(),
        name="tribune-channel-clock-remote",
Exemplo n.º 3
0
        ConfigDiscoveryView.as_view(),
        name='tribune-config'),

    # Remote backend for specific targeted clocks
    url(r'^clock/(?P<clock>\d+)/$',
        ClockJsonView.as_view(),
        name='tribune-clock-remote'),

    # Message posting views
    url(r'^post/$', PostRemotePlainView.as_view(), name='tribune-post-plain'),
    url(r'^post/json/$',
        PostRemoteJsonView.as_view(),
        name='tribune-post-json'),
    url(r'^post/xml/$', PostRemoteXmlView.as_view(), name='tribune-post-xml'),
    url(r'^post/xml/crap/$',
        PostRemoteCrapXmlView.as_view(),
        name='tribune-post-xml-crap'),

    # Remote backend views for message list
    url(r'^remote/$', RemotePlainView.as_view(), name='tribune-remote-plain'),
    url(r'^remote/json/$',
        RemoteJsonView.as_view(),
        name='tribune-remote-json'),
    url(r'^remote/xml/$', RemoteXmlView.as_view(), name='tribune-remote-xml'),
    url(r'^remote/xml/crap/$',
        RemoteCrapXmlView.as_view(),
        name='tribune-remote-xml-crap'),

    # Duplicated previous urls for channel tribunes
    url(r'^(?P<channel_slug>[-\w]+)/$',
        PostBoardView.as_view(),
Exemplo n.º 4
0
 url(r'^$', PostBoardView.as_view(), name='tribune-board'),
 url(r'^noscript/$', PostBoardNoScriptView.as_view(), name='tribune-board-noscript'),
 
 #url(r'^readme/$', ReadmePage.as_view(), name='tribune-readme'),
 
 # For default tribune
 url(r'^discovery.config$', ConfigDiscoveryView.as_view(), name='tribune-config'),
 
 # Remote backend for specific targeted clocks
 url(r'^clock/(?P<clock>[:\d]{5,9})/$', ClockJsonView.as_view(), name='tribune-clock-remote'),
 
 # Message posting views
 url(r'^post/$', PostRemotePlainView.as_view(), name='tribune-post-plain'),
 url(r'^post/json/$', PostRemoteJsonView.as_view(), name='tribune-post-json'),
 url(r'^post/xml/$', PostRemoteXmlView.as_view(), name='tribune-post-xml'),
 url(r'^crap/post.xml$', PostRemoteCrapXmlView.as_view(), name='tribune-post-xml-crap'),
 
 # Remote backend views for message list
 url(r'^remote/$', RemotePlainView.as_view(), name='tribune-remote-plain'),
 url(r'^remote/json/$', RemoteJsonView.as_view(), name='tribune-remote-json'),
 url(r'^remote/xml/$', RemoteXmlView.as_view(), name='tribune-remote-xml'),
 url(r'^crap/remote.xml$', RemoteCrapXmlView.as_view(), name='tribune-remote-xml-crap'),
 
 # Message posting views
 url(r'^urls/$', UrlArchivesView.as_view(), name='tribune-url-archives'),
 
 # Duplicated previous urls for channel tribunes
 url(r'^(?P<channel_slug>[-\w]+)/$', PostBoardView.as_view(), name='tribune-channel-board'),
 url(r'^(?P<channel_slug>[-\w]+)/noscript/$', PostBoardNoScriptView.as_view(), name='tribune-channel-board-noscript'),
 
 url(r'^(?P<channel_slug>[-\w]+)/discovery.config', ConfigDiscoveryView.as_view(), name='tribune-channel-config'),