from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^login$', views.login, name='login'), url(r'^logout$', views.logout, name='logout'), url(r'^register$', views.register, name='register'), url(r'^user/$', views.user, name='user_list'), url(r'^user/(?P[0-9]+)/$', views.user, name='user_profile'), url(r'^user/(?P[0-9]+)/edit$', views.user_edit, name='user_edit'), url(r'^page/$', views.page, name='page_list'), url(r'^page/(?P[a-z0-9]*)/$', views.page, name='page'), url(r'^page/(?P[a-z0-9]*)/edit$', views.page_edit, name='page_edit'), ]