2015-11-25 15:20:28 +00:00
|
|
|
from django.conf.urls import url, include
|
2015-11-18 08:44:06 +00:00
|
|
|
|
2015-11-25 13:45:18 +00:00
|
|
|
from core.views import *
|
2016-07-17 10:38:02 +00:00
|
|
|
from counter.views import UserAccountView
|
2015-11-18 08:44:06 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2015-11-25 13:45:18 +00:00
|
|
|
url(r'^$', index, name='index'),
|
2015-11-25 16:03:18 +00:00
|
|
|
|
2015-12-08 16:22:50 +00:00
|
|
|
# Login and co
|
2015-11-26 09:57:26 +00:00
|
|
|
url(r'^login/$', login, name='login'),
|
|
|
|
url(r'^logout/$', logout, name='logout'),
|
|
|
|
url(r'^password_change/$', password_change, name='password_change'),
|
2015-11-25 16:03:18 +00:00
|
|
|
url(r'^password_change/done$', password_change_done, name='password_change_done'),
|
2015-11-26 09:57:26 +00:00
|
|
|
url(r'^password_reset/$', password_reset, name='password_reset'),
|
2015-11-25 16:03:18 +00:00
|
|
|
url(r'^password_reset/done$', password_reset_done, name='password_reset_done'),
|
|
|
|
url(r'^reset/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$', password_reset_confirm, name='password_reset_confirm'),
|
|
|
|
url(r'^reset/done/$', password_reset_complete, name='password_reset_complete'),
|
2015-11-25 13:45:18 +00:00
|
|
|
url(r'^register$', register, name='register'),
|
2015-11-25 16:03:18 +00:00
|
|
|
|
2015-12-08 16:22:50 +00:00
|
|
|
# Group handling
|
2015-11-26 16:40:31 +00:00
|
|
|
url(r'^group/$', GroupListView.as_view(), name='group_list'),
|
2016-05-11 15:54:00 +00:00
|
|
|
url(r'^group/new$', GroupCreateView.as_view(), name='group_new'),
|
2015-11-26 16:40:31 +00:00
|
|
|
url(r'^group/(?P<group_id>[0-9]+)/$', GroupEditView.as_view(), name='group_edit'),
|
2016-05-11 15:54:00 +00:00
|
|
|
url(r'^group/(?P<group_id>[0-9]+)/delete$', GroupDeleteView.as_view(), name='group_delete'),
|
2015-11-26 16:40:31 +00:00
|
|
|
|
2015-12-08 16:22:50 +00:00
|
|
|
# User views
|
2015-11-26 15:32:56 +00:00
|
|
|
url(r'^user/$', UserListView.as_view(), name='user_list'),
|
|
|
|
url(r'^user/(?P<user_id>[0-9]+)/$', UserView.as_view(), name='user_profile'),
|
|
|
|
url(r'^user/(?P<user_id>[0-9]+)/edit$', UserUpdateProfileView.as_view(), name='user_edit'),
|
2016-07-17 22:47:56 +00:00
|
|
|
url(r'^user/(?P<user_id>[0-9]+)/groups$', UserUpdateGroupView.as_view(), name='user_groups'),
|
2015-12-08 16:22:50 +00:00
|
|
|
url(r'^user/tools/$', UserToolsView.as_view(), name='user_tools'),
|
2016-07-17 10:38:02 +00:00
|
|
|
url(r'^user/(?P<user_id>[0-9]+)/account$', UserAccountView.as_view(), name='user_account'),
|
2015-12-02 10:09:50 +00:00
|
|
|
|
2015-12-08 16:22:50 +00:00
|
|
|
# Page views
|
2015-11-25 13:45:18 +00:00
|
|
|
url(r'^page/$', PageListView.as_view(), name='page_list'),
|
2016-05-31 11:00:24 +00:00
|
|
|
url(r'^page/create$', PageCreateView.as_view(), name='page_new'),
|
2016-01-11 09:13:30 +00:00
|
|
|
url(r'^page/(?P<page_name>[a-z0-9/-_]*)/edit$', PageEditView.as_view(), name='page_edit'),
|
|
|
|
url(r'^page/(?P<page_name>[a-z0-9/-_]*)/prop$', PagePropView.as_view(), name='page_prop'),
|
|
|
|
url(r'^page/(?P<page_name>[a-z0-9/-_]*)/hist$', PageHistView.as_view(), name='page_hist'),
|
|
|
|
url(r'^page/(?P<page_name>[a-z0-9/-_]*)/rev/(?P<rev>[0-9]+)/', PageRevView.as_view(), name='page_rev'),
|
|
|
|
url(r'^page/(?P<page_name>[a-z0-9/-_]*)/$', PageView.as_view(), name='page'),
|
2016-01-08 16:11:38 +00:00
|
|
|
|
|
|
|
# API
|
|
|
|
url(r'^api/markdown$', render_markdown, name='api_markdown'),
|
2015-11-18 08:44:06 +00:00
|
|
|
]
|
|
|
|
|