from django.conf.urls import patterns, url from boards import views urlpatterns = patterns('', # /boards/ url(r'^$', views.index, name = 'index'), # login page url(r'^login$', views.login, name='login'), # /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'^post.html$', views.new_post, name='post'), )