forked from triaquae/CrazyEye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
21 lines (15 loc) · 920 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from django.conf.urls import url,include
from kingadmin import views
urlpatterns = [
url(r'^login/$', views.acc_login, name="acc_login"),
url(r'^logout/$', views.acc_logout, name="acc_logout"),
url(r'^(\w+)/(\w+)/change/(\d+)/password/$', views.password_reset_form, name='password_reset'),
url(r'^account/password_reset/$', views.personal_password_reset, name='personal_password_reset'),
url(r'^$', views.app_index, name="table_index"), # 显示所有注册的表
url(r'^(\w+)/$', views.app_tables, name="app_tables"), # 显示每个app里所有注册的表
url(r'^(\w+)/(\w+)/$',views.display_table_list,name="table_list"), #显示每个表的数据
url(r'^(\w+)/(\w+)/add/$', views.table_add, name="table_add"),
url(r'^(\w+)/(\w+)/change/(\d+)/$', views.table_change, name="table_change"),
#
url(r'^(\w+)/(\w+)/delete/(\d+)/$', views.table_del, name="table_del"),
]