##// END OF EJS Templates
Added methods for getting opening posts and threads.
Added methods for getting opening posts and threads.

File last commit:

r4:42d786b3 default
r5:7234fa23 default
Show More
urls.py
14 lines | 411 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'),
# /boards/tag/
url(r'^(?P<tag>\w+)/$', views.tag, name = 'tag'),
# /boards/post_id/
url(r'^(?P<post>\w+)/$', views.thread, name = 'thread'),
# /boards/tag/post/
url(r'^(?P<tag>\w+)/post.html$', views.new_post,
name='post'),
)