django之视图函数的介绍

request-path 路径

request.get_full_path() 路径+数据

render(request,"html") 推荐

render_to_response("html") 有时会出现意想不到的bug

locals() 局部变量全部传给模板

redirect("路径") 页面跳转

redirect() 跳转  render() 不跳转

猜你喜欢

转载自www.cnblogs.com/jintian/p/11135541.html