urls.py 685 Bytes
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
from django.conf.urls import url

from . import views

urlpatterns = [
Skia's avatar
Skia committed
6
    url(r'^$', views.index, name='index'),
Skia's avatar
Skia committed
7
    url(r'^login$', views.login, name='login'),
Skia's avatar
Skia committed
8
    url(r'^logout$', views.logout, name='logout'),
Skia's avatar
Skia committed
9
    url(r'^register$', views.register, name='register'),
Skia's avatar
Skia committed
10
11
12
    url(r'^user/$', views.user, name='user_list'),
    url(r'^user/(?P<user_id>[0-9]+)/$', views.user, name='user_profile'),
    url(r'^user/(?P<user_id>[0-9]+)/edit$', views.user_edit, name='user_edit'),
Skia's avatar
Skia committed
13
14
15
    url(r'^page/$', views.page, name='page_list'),
    url(r'^page/(?P<page_name>[a-z0-9]*)/$', views.page, name='page'),
    url(r'^page/(?P<page_name>[a-z0-9]*)/edit$', views.page_edit, name='page_edit'),
Skia's avatar
Skia committed
16
17
]