摘要: 一:视图层之HttpRequest对象 # 前台Post传过来的数据,包装到POST字典中 # request.POST # 前台浏览器窗口里携带的数据,包装到GET字典中 # request.GET # 前台请求的方式 # request.method # post提交的数据,body体的内容,前 阅读全文
posted @ 2018-11-08 21:35 温暖你的心 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 一:虚拟环境 创建虚拟环境一般有三种方式: 1) File >New Project--> 出现如下图,点击Project Interpreter:New Virtualenv environment; 这个方式是在PyCharm下创建虚拟环境 2) 打开Project Interpreters页面 阅读全文
posted @ 2018-11-08 20:25 温暖你的心 阅读(148) 评论(0) 推荐(0) 编辑
摘要: python安装了2和3版本在 cmd 中用pip报的错误为:Fatal error in launcher:Unable to create process using 这是因为你安装了python3和python2在你的windows下,并且在环境变量中分别配置了pip,可是并没有区分pip3还 阅读全文
posted @ 2018-11-08 18:43 温暖你的心 阅读(14569) 评论(0) 推荐(0) 编辑