梦见世界

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 8 9 10 11 12 13 14 下一页

2015年8月1日

摘要: PHP代码调试总结linux中php命令 php -l file 表示检查php文件语法错误php -f file 表示运行php文件运行的php文件操作后可能会对数据库等相关存储进行更改,从而可以在网页中反馈出来 阅读全文
posted @ 2015-08-01 16:14 梦见世界 阅读(196) 评论(0) 推荐(0) 编辑

2015年7月30日

摘要: 1. 在添加模板文件夹要在settings.py中的TEMPLATES中的DIRS加入os.path.join(BASE_DIR, 'templates')2.不要忘记将新的app添加到settings.py中3.django使用自带的认证模块创建用户时,要注意使用create_user方法,而不是... 阅读全文
posted @ 2015-07-30 17:49 梦见世界 阅读(152) 评论(0) 推荐(0) 编辑

摘要: 0.mysql配置: 1.pip install mysql-python 2.settings.py文件中设置(django1.8+ pyhton2.7) 'ENGINE': 'django.db.backends.mysql', 'NAME': 'wmq_test', ... 阅读全文
posted @ 2015-07-30 10:33 梦见世界 阅读(137) 评论(0) 推荐(0) 编辑

2015年7月29日

摘要: A successful Git branching modelByVincent Driessenon Tuesday, January 05, 2010Carbon Ads - a circle you want to be part of. Grab a spot.ads viaCarbonI... 阅读全文
posted @ 2015-07-29 16:02 梦见世界 阅读(82) 评论(0) 推荐(0) 编辑

摘要: GIT分支管理是一门艺术作者: Vincent Driessen发布时间: 2012-02-22 11:26阅读: 12337 次推荐: 6原文链接[收藏] 英文原文:http://www.nvie.com/posts/a-successful-git-branching-model/ 原文作者... 阅读全文
posted @ 2015-07-29 15:24 梦见世界 阅读(109) 评论(0) 推荐(0) 编辑

2015年7月28日

摘要: Django验证模块user 对象:usernamepasswordemailfirst_namelast_name常用方法:create_user(): from django.contrib.auth.models import User user = User.objects.create_u... 阅读全文
posted @ 2015-07-28 15:36 梦见世界 阅读(223) 评论(0) 推荐(0) 编辑

2015年7月27日

摘要: 文章为转载,地址:http://blog.chinaunix.net/uid-26000296-id-4372063.html一、简单将日志打印到屏幕:[python]view plaincopyimportlogginglogging.debug('debugmessage')logging.in... 阅读全文
posted @ 2015-07-27 09:19 梦见世界 阅读(239) 评论(0) 推荐(0) 编辑

2015年7月25日

摘要: Linux下终端利器tmuxAUG 6TH, 2013|COMMENTS“君子生非异也,善假于物也” 。–语出《荀子·劝学》如果记得没错的话,《荀子·劝学》我们这一代高中的时候应该都读过这篇文章。原意大概是君子的资质与一般人没有什么区别,君子之所以高于一般人,是因为他能善于利用外物。对于技术人来说,... 阅读全文
posted @ 2015-07-25 21:42 梦见世界 阅读(149) 评论(0) 推荐(0) 编辑

摘要: 官方文档:http://psa.matiasaguirre.net/docs/pipeline.html#authentication-pipeline管道机制是开发者在开发身份认证,连接和断开连接等模块时能够用到的机制每个管道接口返回类型为dict或者None,任何其他的返回类型会被当作respo... 阅读全文
posted @ 2015-07-25 17:58 梦见世界 阅读(617) 评论(0) 推荐(0) 编辑

摘要: 本文转自:http://www.douban.com/note/97939653/ 多谢给丫睡钱总结1:使用User对象User 对象属性:username, password(必填项)password用哈希算法保存到数据库email,last_login,date_joined(字面意思就知道了)... 阅读全文
posted @ 2015-07-25 16:49 梦见世界 阅读(319) 评论(0) 推荐(0) 编辑

上一页 1 ··· 8 9 10 11 12 13 14 下一页