from django.conf.urls import patterns, include, url from misago.threads.views.threads import (ForumView, ThreadView, StartThreadView, ReplyView, EditView) urlpatterns = patterns('', url(r'^forum/(?P[\w\d-]+)-(?P\d+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/(?P\d+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/sort-(?P[\w-]+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/sort-(?P[\w-]+)/(?P\d+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/show-(?P[\w-]+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/show-(?P[\w-]+)/(?P\d+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/sort-(?P[\w-]+)/show-(?P[\w-]+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/sort-(?P[\w-]+)/show-(?P[\w-]+)/(?P\d+)/$', ForumView.as_view(), name='forum'), url(r'^forum/(?P[\w\d-]+)-(?P\d+)/start-thread/$', StartThreadView.as_view(), name='start_thread'), ) urlpatterns += patterns('', url(r'^thread/(?P[\w\d-]+)-(?P\d+)/$', ThreadView.as_view(), name='thread'), url(r'^thread/(?P[\w\d-]+)-(?P\d+)/(?P\d+)/$', ThreadView.as_view(), name='thread'), ) # new threads lists from misago.threads.views.newthreads import NewThreadsView, clear_new_threads urlpatterns += patterns('', url(r'^new-threads/$', NewThreadsView.as_view(), name='new_threads'), url(r'^new-threads/(?P\d+)/$', NewThreadsView.as_view(), name='new_threads'), url(r'^new-threads/sort-(?P[\w-]+)$', NewThreadsView.as_view(), name='new_threads'), url(r'^new-threads/sort-(?P[\w-]+)(?P\d+)/$', NewThreadsView.as_view(), name='new_threads'), url(r'^new-threads/clear/$', clear_new_threads, name='clear_new_threads'), ) # unread threads lists from misago.threads.views.unreadthreads import (UnreadThreadsView, clear_unread_threads) urlpatterns += patterns('', url(r'^unread-threads/$', UnreadThreadsView.as_view(), name='unread_threads'), url(r'^unread-threads/(?P\d+)/$', UnreadThreadsView.as_view(), name='unread_threads'), url(r'^unread-threads/sort-(?P[\w-]+)$', UnreadThreadsView.as_view(), name='unread_threads'), url(r'^unread-threads/sort-(?P[\w-]+)(?P\d+)/$', UnreadThreadsView.as_view(), name='unread_threads'), url(r'^unread-threads/clear/$', clear_unread_threads, name='clear_unread_threads'), )