摘要: 说明:1.django 的request的处理过程是中间件 Middleware 的作用过程2.各个Middleware 的作用过程产生不同类型的Response,Response既为服务器要做出的响应3.根据Middleware 的处理情况会产生各种类型的异常 Exception,这些异常通过异常中间件Exception Middleware处理后做出各种异常响应Response 阅读全文
posted @ 2011-04-11 11:40 软践 阅读(1869) 评论(0) 推荐(0) 编辑
摘要: 示例为获取百度服务器请求头部信息: 阅读全文
posted @ 2011-01-30 16:52 软践 阅读(2208) 评论(0) 推荐(0) 编辑
摘要: 使用实例: 阅读全文
posted @ 2011-01-30 16:42 软践 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 使用实例:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->self.data=str(soup.find("div",{"id":div_id})) # 查找出 id 为 div_id 的div 中的内容 阅读全文
posted @ 2011-01-30 16:39 软践 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 详细见:http://oejia.net/blog/2014/12/06/pyqt-ui-wt.html代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-... 阅读全文
posted @ 2011-01-24 15:24 软践 阅读(8934) 评论(0) 推荐(2) 编辑
摘要: ubuntu linux 中 用 gcc 编译会 含 exit(0); 的c程序会出现警告 warning: incompatible implicit declaration of built-in function ‘exit’ 将 ‘ exit(0)’ 改为 ‘ return 0’ 即可消除此警告 阅读全文
posted @ 2010-12-13 09:52 软践 阅读(634) 评论(0) 推荐(0) 编辑
摘要: bin 是每个项目动态库的本地化目录 只要将动态链接库文件拷贝到此目录程序运行时就可以自动检测到而能够得以调用其中的对象。  “引用”项列表 是程序开发工程中产生的,通常在程序中用 using 引用了命名空间都会自动的添加到此列表中来,而且是以命名空间的方式显示的,其代表的是一个引用,指向的动态链接库文件并非程序部署的一部分。所以如果项目开发的环境和部署的环境不同时应该注意... 阅读全文
posted @ 2010-11-22 21:26 软践 阅读(1693) 评论(0) 推荐(0) 编辑
摘要: html 文件中:.aspx文件中: 阅读全文
posted @ 2010-05-29 00:06 软践 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 详情见 http://www.oejia.net/blog/2016/01/17/extjs_ajax.html简单的Ext.Ajax. request示例Ext.Ajax表单提交示例Ext.Ajax. request提交xml数据Ext.Ajax. request提交json数据Ext.Updat... 阅读全文
posted @ 2010-04-05 15:17 软践 阅读(8337) 评论(0) 推荐(0) 编辑
摘要: mce:script type="text/javascript" !--Ext.DomHelper.append 内容追加 var panel = new Ext.Panel({ title : 'Ext.DomHelper示例', width : '280px', renderTo : 'sub1', html : 'div id="div1" style="height:160px;padding:5px"原文本/div' }); Ext.DomHelper.append(Ext.get("div1"),"br新追加了文本",true); Ext 阅读全文
posted @ 2010-04-05 11:47 软践 阅读(2013) 评论(0) 推荐(0) 编辑