from django.conf.urls import patterns, include, url from misago.threads.views.threads import ForumView 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'), ) from misago.threads.views.threads import (ThreadView, GotoLastView, GotoNewView, GotoReportedView, GotoModeratedView, GotoPostView) 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'), url(r'^thread/(?P[\w\d-]+)-(?P\d+)/last/$', GotoLastView.as_view(), name='thread_last'), url(r'^thread/(?P[\w\d-]+)-(?P\d+)/new/$', GotoNewView.as_view(), name='thread_new'), url(r'^thread/(?P[\w\d-]+)-(?P\d+)/reported/$', GotoReportedView.as_view(), name='thread_reported'), url(r'^thread/(?P[\w\d-]+)-(?P\d+)/moderated/$', GotoModeratedView.as_view(), name='thread_moderated'), url(r'^thread/(?P[\w\d-]+)-(?P\d+)/post-(?P\d+)/$', GotoPostView.as_view(), name='thread_post'), ) from misago.threads.views.threads import StartThreadView, ReplyView, EditView urlpatterns += patterns('', url(r'^start-thread/(?P\d+)/$', StartThreadView.as_view(), name='start_thread'), url(r'^reply-thread/(?P\d+)/(?P\d+)/$', ReplyView.as_view(), name='reply_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'), ) # events moderation from misago.threads.views.events import EventsView urlpatterns += patterns('', url(r'^edit-event/(?P\d+)/$', EventsView.as_view(), name='edit_event'), )