urls.py
14 lines
| 411 B
| text/x-python
|
PythonLexer
/ boards / urls.py
neko259
|
r0 | from django.conf.urls import patterns, url | ||
from boards import views | ||||
urlpatterns = patterns('', | ||||
# /boards/ | ||||
neko259
|
r4 | 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, | ||||
neko259
|
r0 | name='post'), | ||
) | ||||