from django.conf.urls import patterns, url from boards import views urlpatterns = patterns('', # /boards/ url(r'^$', views.index, name = 'index'), # /boards/tag/ url(r'^(?P\w+)/$', views.tag, name = 'tag'), # /boards/post_id/ url(r'^(?P\w+)/$', views.thread, name = 'thread'), # /boards/tag/post/ url(r'^(?P\w+)/post.html$', views.new_post, name='post'), )