42 lines
1.8 KiB
Python
42 lines
1.8 KiB
Python
from django.contrib import admin
|
|
from django.urls import path
|
|
|
|
from dashboard import views
|
|
|
|
urlpatterns = [
|
|
path('index/', views.index, name='dashboard-index'),
|
|
path('', views.user_login, name='dashboard-login'),
|
|
path('user/login/for/phone/', views.user_login_for_phone, name='dashboard-login-for-phone'),
|
|
#手机用户第一次登录后完善个人信息
|
|
path('user/improve/personal/information/<str:pk>/',views.improve_personal_information,name = 'user-improve-personal-information'),
|
|
#发送手机验证码
|
|
path('author/code/',views.author_code,name='author-code'),
|
|
path('refresh_captcha/', views.refresh_captcha, name='refresh-captcha'),
|
|
path('logout/', views.user_logout, name='dashboard-logout'),
|
|
path('register/', views.register, name='dashboard-register'),
|
|
|
|
#省市县地区级联菜单
|
|
#获取省
|
|
path('get/province/',views.get_province),
|
|
path('get/city/',views.get_city),
|
|
path('get/district/',views.get_district),
|
|
path('get/town/',views.get_town),
|
|
path('get/village/',views.get_village),
|
|
#单位搜索
|
|
path('get/organization/',views.get_organization,name='get-organization'),
|
|
path('tencent13722515905013783955.txt', views.wechat_verify, name='wechat-verify'),
|
|
|
|
#用户搜索
|
|
path('user/search/by/keyword/',views.user_search_by_keyword,name='user-search-by-keyword'),
|
|
#新闻搜索
|
|
path('news/search/by/keyword/',views.news_search_by_keyword,name='news-search-by-keyword'),
|
|
#单位搜索
|
|
path('organization/search/by/keyword',views.organization_search_by_keyword,name='organization-search-by-keyword'),
|
|
#微信搜索
|
|
path('weixin/search/by/keyword',views.weixin_search_by_keyword,name='weixin-search-by-keyword'),
|
|
|
|
#导入用户数据用的
|
|
path('import/user',views.import_user)
|
|
|
|
]
|