urls.py
20 lines
| 556 B
| text/x-python
|
PythonLexer
/ boards / urls.py
|
r0 | from django.conf.urls import patterns, url | ||
from boards import views | ||||
urlpatterns = patterns('', | ||||
|
r9 | |||
|
r0 | # /boards/ | ||
|
r4 | url(r'^$', views.index, name = 'index'), | ||
|
r9 | |||
# login page | ||||
url(r'^login$', views.login, name='login'), | ||||
|
r13 | # logout page | ||
url(r'^logout$', views.logout, name='logout'), | ||||
|
r9 | |||
|
r4 | # /boards/tag/ | ||
|
r35 | url(r'^tag/(?P<tag_name>\w+)/$', views.tag, name='tag'), | ||
|
r4 | # /boards/post_id/ | ||
|
r35 | url(r'^thread/(?P<post_id>\w+)/$', views.thread, name='thread'), | ||
# /boards/theme/theme_name/ | ||||
url(r'^settings$', views.settings, name='settings'), | ||||
|
r0 | ) | ||