urls.py 1.85 KB
Newer Older
1
from django.conf.urls import url, include
Skia's avatar
Skia committed
2

3
from core.views import *
Skia's avatar
Skia committed
4 5

urlpatterns = [
Skia's avatar
Skia committed
6
    #url('^', include('django.contrib.auth.urls')),
Skia's avatar
Skia committed
7

8
    url(r'^$', index, name='index'),
Skia's avatar
Skia committed
9

Skia's avatar
Skia committed
10 11 12
    url(r'^login/$', login, name='login'),
    url(r'^logout/$', logout, name='logout'),
    url(r'^password_change/$', password_change, name='password_change'),
Skia's avatar
Skia committed
13
    url(r'^password_change/done$', password_change_done, name='password_change_done'),
Skia's avatar
Skia committed
14
    url(r'^password_reset/$', password_reset, name='password_reset'),
Skia's avatar
Skia committed
15 16 17
    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'),
18
    url(r'^register$', register, name='register'),
Skia's avatar
Skia committed
19

20 21 22
    url(r'^group/$', GroupListView.as_view(), name='group_list'),
    url(r'^group/(?P<group_id>[0-9]+)/$', GroupEditView.as_view(), name='group_edit'),

Skia's avatar
Skia committed
23 24 25 26
    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'),
    url(r'^user/(?P<user_id>[0-9]+)/groups$', UserUpdateGroupsView.as_view(), name='user_groups'),
27

28 29 30
    url(r'^page/$', PageListView.as_view(), name='page_list'),
    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'),
31 32 33
    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'),
Skia's avatar
Skia committed
34 35
]