Sith/core/urls.py

18 lines
685 B
Python
Raw Normal View History

2015-11-18 08:44:06 +00:00
from django.conf.urls import url
from . import views
urlpatterns = [
2015-11-18 16:09:06 +00:00
url(r'^$', views.index, name='index'),
2015-11-18 08:44:06 +00:00
url(r'^login$', views.login, name='login'),
2015-11-18 16:09:06 +00:00
url(r'^logout$', views.logout, name='logout'),
2015-11-18 08:44:06 +00:00
url(r'^register$', views.register, name='register'),
2015-11-19 08:46:05 +00:00
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'),
2015-11-20 14:47:01 +00:00
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'),
2015-11-18 08:44:06 +00:00
]