当用户通过认证时,set_Cookie(key, value) request.Cookie.get(key) 如果key不为空,就说明验证通过,否者重新跳转回login登录页面 对于URL urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^tp1/', views.tp1), url(r'^user_list', views.user_list), url(r'^login', views.login), url(r'^Order…