from django.conf.urls import url, include from core.views import * urlpatterns = [ url(r'^$', index, name='index'), # Login and co url(r'^login/$', login, name='login'), url(r'^logout/$', logout, name='logout'), url(r'^password_change/$', password_change, name='password_change'), url(r'^password_change/done$', password_change_done, name='password_change_done'), url(r'^password_reset/$', password_reset, name='password_reset'), url(r'^password_reset/done$', password_reset_done, name='password_reset_done'), url(r'^reset/(?P[0-9A-Za-z_\-]+)/(?P[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'), url(r'^register$', register, name='register'), # Group handling url(r'^group/$', GroupListView.as_view(), name='group_list'), url(r'^group/new$', GroupCreateView.as_view(), name='group_new'), url(r'^group/(?P[0-9]+)/$', GroupEditView.as_view(), name='group_edit'), url(r'^group/(?P[0-9]+)/delete$', GroupDeleteView.as_view(), name='group_delete'), # User views url(r'^user/$', UserListView.as_view(), name='user_list'), url(r'^user/(?P[0-9]+)/$', UserView.as_view(), name='user_profile'), url(r'^user/(?P[0-9]+)/edit$', UserUpdateProfileView.as_view(), name='user_edit'), url(r'^user/(?P[0-9]+)/prop$', UserUpdatePropView.as_view(), name='user_prop'), url(r'^user/tools/$', UserToolsView.as_view(), name='user_tools'), # Page views url(r'^page/$', PageListView.as_view(), name='page_list'), url(r'^page/(?P[a-z0-9/-_]*)/edit$', PageEditView.as_view(), name='page_edit'), url(r'^page/(?P[a-z0-9/-_]*)/prop$', PagePropView.as_view(), name='page_prop'), url(r'^page/(?P[a-z0-9/-_]*)/hist$', PageHistView.as_view(), name='page_hist'), url(r'^page/(?P[a-z0-9/-_]*)/rev/(?P[0-9]+)/', PageRevView.as_view(), name='page_rev'), url(r'^page/(?P[a-z0-9/-_]*)/$', PageView.as_view(), name='page'), # API url(r'^api/markdown$', render_markdown, name='api_markdown'), ]