urls.py
25 lines
| 804 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
|
r46 | url(r'^$', views.index, name='index'), | ||
# /boards/page/ | ||||
url(r'^page/(?P<page>\w+)/$', 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
|
r46 | # /boards/tag/tag_name/ | ||
neko259
|
r35 | url(r'^tag/(?P<tag_name>\w+)/$', views.tag, name='tag'), | ||
neko259
|
r46 | # /boards/tag/tag_id/page/ | ||
url(r'^tag/(?P<tag_name>\w+)/page/(?P<page>\w+)/$', views.tag, name='tag'), | ||||
# /boards/thread/ | ||||
neko259
|
r35 | url(r'^thread/(?P<post_id>\w+)/$', views.thread, name='thread'), | ||
# /boards/theme/theme_name/ | ||||
url(r'^settings$', views.settings, name='settings'), | ||||
neko259
|
r57 | url(r'^tags$', views.all_tags, name='tags'), | ||
neko259
|
r0 | ) | ||