urls.py
19 lines
| 466 B
| text/x-python
|
PythonLexer
/ boards / urls.py
neko259
|
r0 | from django.conf.urls import patterns, url | ||
from boards import views | ||||
urlpatterns = patterns('', | ||||
Ilyas
|
r9 | |||
neko259
|
r0 | # /boards/ | ||
neko259
|
r4 | url(r'^$', views.index, name = 'index'), | ||
Ilyas
|
r9 | |||
# login page | ||||
url(r'^login$', views.login, name='login'), | ||||
neko259
|
r4 | # /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/ | ||||
neko259
|
r6 | url(r'^post.html$', views.new_post, | ||
neko259
|
r0 | name='post'), | ||
) | ||||