##// END OF EJS Templates
Fixed getting posts for a thread. Implemented thread getting test.
Fixed getting posts for a thread. Implemented thread getting test.

File last commit:

r17:e40b2431 default
r17:e40b2431 default
Show More
urls.py
21 lines | 542 B | text/x-python | PythonLexer
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'),
# logout page
url(r'^logout$', views.logout, name='logout'),
# /boards/tag/
url(r'^tag/(?P<tag>\w+)/$', views.tag, name = 'tag'),
# /boards/post_id/
url(r'^post/(?P<id>\w+)/$', views.thread, name = 'thread'),
# /boards/tag/post/
url(r'^post.html$', views.new_post,
name='post'),
)