from django.conf.urls import patterns, url urlpatterns = patterns('misago.threads.views', url(r'^forum/(?P(\w|-)+)-(?P\d+)/$', 'List', name="forum"), url(r'^forum/(?P(\w|-)+)-(?P\d+)/(?P\d+)/$', 'List', name="forum"), url(r'^forum/(?P(\w|-)+)-(?P\d+)/new/$', 'Posting', name="thread_new", kwargs={'mode': 'new_thread'}), url(r'^thread/(?P(\w|-)+)-(?P\d+)/$', 'Thread', name="thread"), url(r'^thread/(?P(\w|-)+)-(?P\d+)/(?P\d+)/$', 'Thread', name="thread"), url(r'^thread/(?P(\w|-)+)-(?P\d+)/reply/$', 'Posting', name="thread_reply"), )