2014年5月27日

0,快速教程

摘要: QuickstartWe're going to create a simple API to allow admin users to view and edit the users and groups in the system.我们将建立一个简单的API例子,只有超级用户admin才能查看和... 阅读全文

posted @ 2014-05-27 10:40 数学之道 阅读(296) 评论(0) 推荐(0) 编辑

2014年5月26日

如何卸载Python通过setup.py安装的模块

摘要: 0,pip uninstall xxxx1、找到eggsudo easy_install -m BitVector....Using /usr/local/lib/python2.6/dis2、删除egg文件和py、pyc1 cd /usr/local/lib/python2.6/dist-pack... 阅读全文

posted @ 2014-05-26 16:36 数学之道 阅读(525) 评论(0) 推荐(0) 编辑

2014年5月25日

Django ImageField 上传图片并保存到数据库

摘要: 转自:http://logic0.blog.163.com/blog/static/188928146201371235435974/Form代码:class ImageUploadForm(forms.Form): """Image upload form.""" image = fo... 阅读全文

posted @ 2014-05-25 12:25 数学之道 阅读(2682) 评论(0) 推荐(0) 编辑

2014年5月20日

Django 登录页面重定向

摘要: 转自:http://blog.chedushi.com/archives/3484登陆和注销操作在网页编程上很常见,这两个操作经常需要在操作成功以后转入发出请求的页面。比如用户正在浏览一篇文章,发现下载该文章的附件需要登录才能进行,这时候点击登陆链接转入登陆页面,输入用户名密码登陆成功以后,会自动转... 阅读全文

posted @ 2014-05-20 14:04 数学之道 阅读(3967) 评论(0) 推荐(0) 编辑

2014年5月5日

python 调试命令

摘要: 部分整理自:http://flysnowxf.iteye.com/blog/1327677启动调试:python -m pdb xxx.py常用命令说明:l #查看运行到哪行代码n #单步运行,跳过函数s #单步运行,可进入函数p 变量 #查看变量值b 行... 阅读全文

posted @ 2014-05-05 15:38 数学之道 阅读(301) 评论(0) 推荐(0) 编辑

2014年4月17日

错误

摘要: 删除错误 阅读全文

posted @ 2014-04-17 11:02 数学之道 阅读(819) 评论(0) 推荐(0) 编辑

2014年4月11日

错误

摘要: 删除错误 阅读全文

posted @ 2014-04-11 17:00 数学之道 阅读(30482) 评论(2) 推荐(3) 编辑

图算法之图的创建

摘要: 部分整理自:www.cnblogs.com/ahalei/p/3651334.html像树一样,图也是一种数据组织形式,是一种更加松散的形式,能够更加丰富的表达数据之间的关系(链表、树也是一种图结构)。现实中的很多问题都可以用图来抽象解决,如乘坐地铁,怎样转车才能够使得以最短车程到达目的地,图的最短... 阅读全文

posted @ 2014-04-11 15:51 数学之道 阅读(1687) 评论(0) 推荐(0) 编辑

2014年4月4日

Git 常用命令详解(三)

摘要: 转自:http://www.cnblogs.com/1-2-3/archive/2010/07/18/git-commands.html 阅读全文

posted @ 2014-04-04 09:48 数学之道 阅读(173) 评论(0) 推荐(0) 编辑

Git 常用命令详解(二)

摘要: 转自:http://blog.csdn.net/ithomer/article/details/7529022Git 是一个很强大的分布式版本管理工具,它不但适用于管理大型开源软件的源代码(如:linux kernel),管理私人的文档和源代码也有很多优势(如:wsi-lgame-pro)Git 的... 阅读全文

posted @ 2014-04-04 09:08 数学之道 阅读(297) 评论(0) 推荐(0) 编辑

导航