from django.conf.urls import url from . import views urlpatterns = [ url(r'^category/(?P(\w|-)+)-(?P\d+)/$', views.category_redirect), url(r'^forum/(?P(\w|-)+)-(?P\d+)/$', views.category_redirect), url( r'^forum/(?P(\w|-)+)-(?P\d+)/(?P[1-9]([0-9]+)?)/$', views.category_redirect ), url( r'^forum/(?P(\w|-)+)-(?P\d+)/prefix/(?P(\w|-)+)/$', views.category_redirect ), url( r'^forum/(?P(\w|-)+)-(?P\d+)/prefix/(?P(\w|-)+)/(?P[1-9]([0-9]+)?)/$', views.category_redirect ), url(r'^forum/(?P(\w|-)+)-(?P\d+)/start/$', views.category_redirect), ] urlpatterns += [ url(r'^thread/(?P(\w|-)+)-(?P\d+)/edit/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/reply/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/vote/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/poll/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/reply/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/edit/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/$', views.thread_redirect), url( r'^thread/(?P(\w|-)+)-(?P\d+)/(?P[1-9]([0-9]+)?)/$', views.thread_redirect ), url(r'^thread/(?P(\w|-)+)-(?P\d+)/last/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/find-(?P\d+)/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/new/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/moderated/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/reported/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/show-hidden/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/watch/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/watch/email/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/unwatch/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/unwatch/email/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/upvote/$', views.thread_redirect), url( r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/downvote/$', views.thread_redirect ), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/report/$', views.thread_redirect), url( r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/show-report/$', views.thread_redirect ), url(r'^thread/(?P(\w|-)+)-(?P\d+)/delete/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/hide/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/show/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/delete/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/hide/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/show/$', views.thread_redirect), url( r'^thread/(?P(\w|-)+)-(?P\d+)/checkpoint/(?P\d+)/delete/$', views.thread_redirect ), url( r'^thread/(?P(\w|-)+)-(?P\d+)/checkpoint/(?P\d+)/hide/$', views.thread_redirect ), url( r'^thread/(?P(\w|-)+)-(?P\d+)/checkpoint/(?P\d+)/show/$', views.thread_redirect ), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/info/$', views.thread_redirect), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/votes/$', views.thread_redirect), url( r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/changelog/$', views.thread_redirect ), url( r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/changelog/(?P\d+)/$', views.thread_redirect ), url( r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/changelog/(?P\d+)/revert/$', views.thread_redirect ), ] urlpatterns += [ url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/edit/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/reply/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/vote/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/poll/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/reply/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/edit/$', views.private_thread_redirect ), url(r'^private-threads/(?P(\w|-)+)-(?P\d+)/$', views.private_thread_redirect), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P[1-9]([0-9]+)?)/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/last/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/find-(?P\d+)/$', views.private_thread_redirect ), url(r'^private-threads/(?P(\w|-)+)-(?P\d+)/new/$', views.private_thread_redirect), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/moderated/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/reported/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/show-hidden/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/watch/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/watch/email/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/unwatch/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/unwatch/email/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/upvote/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/downvote/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/report/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/show-report/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/delete/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/hide/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/show/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/delete/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/hide/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/show/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/checkpoint/(?P\d+)/delete/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/checkpoint/(?P\d+)/hide/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/checkpoint/(?P\d+)/show/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/info/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/votes/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/changelog/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/changelog/(?P\d+)/$', views.private_thread_redirect ), url( r'^private-threads/(?P(\w|-)+)-(?P\d+)/(?P\d+)/changelog/(?P\d+)/revert/$', views.private_thread_redirect ), ] urlpatterns += [ url(r'^users/(?P\w+)-(?P\d+)/', views.user_redirect), url(r'^users/(?P\w+)-(?P\d+)/(?P\d+)/', views.user_redirect), url(r'^users/(?P\w+)-(?P\d+)/(?P(\w|-)+)/', views.user_redirect), url( r'^users/(?P\w+)-(?P\d+)/(?P(\w|-)+)/(?P\d+)/', views.user_redirect ), ]