urls.py
21 lines
| 544 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'), | ||||
Ilyas
|
r13 | # logout page | ||
url(r'^logout$', views.logout, name='logout'), | ||||
Ilyas
|
r9 | |||
neko259
|
r4 | # /boards/tag/ | ||
neko259
|
r17 | url(r'^tag/(?P<tag>\w+)/$', views.tag, name = 'tag'), | ||
neko259
|
r4 | # /boards/post_id/ | ||
neko259
|
r22 | url(r'^thread/(?P<id>\w+)/$', views.thread, name = 'thread'), | ||
neko259
|
r4 | # /boards/tag/post/ | ||
neko259
|
r6 | url(r'^post.html$', views.new_post, | ||
neko259
|
r0 | name='post'), | ||
) | ||||