urls.py 1.1 KB

123456789101112131415
  1. from django.conf.urls import patterns, url
  2. urlpatterns = patterns('misago.apps.privatethreads',
  3. url(r'^$', 'list.AllThreadsListView', name="private_threads"),
  4. url(r'^(?P<page>\d+)/$', 'list.AllThreadsListView', name="private_threads"),
  5. url(r'^new/$', 'list.NewThreadsListView', name="new_private_threads"),
  6. url(r'^new/(?P<page>\d+)/$', 'list.NewThreadsListView', name="new_private_threads"),
  7. url(r'^my/$', 'list.MyThreadsListView', name="my_private_threads"),
  8. url(r'^my/(?P<page>\d+)/$', 'list.MyThreadsListView', name="my_private_threads"),
  9. url(r'^start/$', 'posting.NewThreadView', name="private_thread_start"),
  10. url(r'^(?P<slug>(\w|-)+)-(?P<thread>\d+)/edit/$', 'posting.EditThreadView', name="private_thread_edit"),
  11. url(r'^(?P<slug>(\w|-)+)-(?P<thread>\d+)/reply/$', 'posting.NewReplyView', name="private_thread_reply"),
  12. url(r'^(?P<slug>(\w|-)+)-(?P<thread>\d+)/(?P<quote>\d+)/reply/$', 'posting.NewReplyView', name="private_thread_reply"),
  13. url(r'^(?P<slug>(\w|-)+)-(?P<thread>\d+)/(?P<post>\d+)/edit/$', 'posting.EditReplyView', name="private_post_edit"),
  14. )