09 2011 档案

摘要:希望大家可以在评论中帮忙指出错误,这文是 用来翻译如下链接的。https://docs.djangoproject.com/en/1.3/ref/templates/api/The Django template language: For Python programmersThis document explains the Django template system from a technical perspective – how it works and how to extend it. If you’re just looking for reference on the l 阅读全文
posted @ 2011-09-27 14:08 snowlueng 阅读(1219) 评论(0) 推荐(1) 编辑
摘要:其实有两个情况,1是完全重复。(设计时没有设定identity)完全重复:select distinct 字段,字段[,..] from table --找到不重复的记录……--这类重复需求通常是需要添加一个identity字段部分重复,指定字段重复,其他字段重复忽略不计(保留)(已经有identity的id了)select max(id) as id ,重复字段,重复字段 from table group by 重复字段,重复字段 having count(*)>1--找到重复的字段删除和保留操作。仅仅说第二种情况select max(id) as id ,重复字段,重复字段 i... 阅读全文
posted @ 2011-09-20 17:54 snowlueng 阅读(417) 评论(0) 推荐(0) 编辑
摘要:ImageFieldclassImageField(**kwargs)Default widget:ClearableFileInputEmpty value:Nonenormalizeto: AnUploadedFileobject that wraps the file content and file name into a single object.Validates that file data has been bound to the form, and that the file is of an image format understood by PIL.Error me 阅读全文
posted @ 2011-09-20 10:22 snowlueng 阅读(447) 评论(0) 推荐(0) 编辑
摘要:而且快下班了,还是晚上再想把。。。 阅读全文
posted @ 2011-09-06 17:52 snowlueng 阅读(115) 评论(0) 推荐(0) 编辑