会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
pyfreshman
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
8
下一页
2016年1月20日
Python同时向控制台和文件输出日志logging的方法 Python logging模块详解
摘要: Python同时向控制台和文件输出日志logging的方法http://www.jb51.net/article/66756.htm 1 #-*- coding:utf-8 -*- 2 import logging 3 # 配置日志信息 4 logging.basicConfig(level=log...
阅读全文
posted @ 2016-01-20 17:30 pyfreshman
阅读(871)
评论(0)
推荐(0)
2016年1月18日
nginx+uwsgi+django1.8.5配置
摘要: http://jingyan.baidu.com/article/2d5afd69cdf6ad85a3e28e4f.html(搜索:wusgi 配置django1.8项目)http://my.oschina.net/u/2367514/blog/515974
阅读全文
posted @ 2016-01-18 23:34 pyfreshman
阅读(166)
评论(0)
推荐(0)
centos 服务器装与python34源码安装
摘要: http://www.111cn.net/sys/CentOS/63645.htm1、CentOS安装Python的依赖包(不安装依赖包,会导致python安装不完整)yum groupinstall "Development tools"yum install zlib-devel bzip2-d...
阅读全文
posted @ 2016-01-18 15:03 pyfreshman
阅读(239)
评论(0)
推荐(0)
2016年1月16日
python3.4实现http请求
摘要: http://www.jb51.net/article/50337.htm
阅读全文
posted @ 2016-01-16 16:17 pyfreshman
阅读(197)
评论(0)
推荐(0)
2016年1月13日
文件只能安装一次
摘要: 1 def get_mac_address(): 2 mac=uuid.UUID(int = uuid.getnode()).hex[-12:] 3 return ":".join([mac[e:e+2] for e in range(0,11,2)])获取计算机名字1 import...
阅读全文
posted @ 2016-01-13 20:09 pyfreshman
阅读(273)
评论(0)
推荐(0)
django 自定用户系统 以及 Django Model 定义语法
摘要: http://www.tuicool.com/articles/jMzIr2django使用自己的用户系统http://www.jianshu.com/p/c10be59aad7a Django Model 定义语法
阅读全文
posted @ 2016-01-13 17:14 pyfreshman
阅读(147)
评论(0)
推荐(0)
2016年1月12日
python 查看插件命令 pip freeze 以及django3.4链接mysql
摘要: https://github.com/PyMySQL/PyMySQL/issues/244pip freeze命令可以显示python插件版本MySQLdb只支持Python2.*,还不支持3.*可以用PyMySQL代替。安装方法:pip install PyMySQL然后在需要的项目中,把 __i...
阅读全文
posted @ 2016-01-12 16:03 pyfreshman
阅读(533)
评论(0)
推荐(0)
2016年1月11日
nginx 配置以及常用命令
摘要: windows下安装以及配置nginxhttp://jingyan.baidu.com/article/f3e34a12a9c1c3f5eb6535d4.html1)下载地址: http://nginx.org2)启动 解压至c:\nginx,运行nginx.exe(即nginx -c conf...
阅读全文
posted @ 2016-01-11 17:48 pyfreshman
阅读(276)
评论(0)
推荐(0)
django TypeError: 'module' object is not callable
摘要: 原因:导入模块时直接把模块当函数使用 1 from rest_framework import reverse #import reverse module 2 3 4 5 @api_view(("GET",)) 6 def api_root(request, format=None):...
阅读全文
posted @ 2016-01-11 09:47 pyfreshman
阅读(1950)
评论(0)
推荐(0)
2016年1月5日
Django Meta内部类选项
摘要: http://blog.csdn.net/yelbosh/article/details/7545335
阅读全文
posted @ 2016-01-05 11:57 pyfreshman
阅读(112)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
8
下一页
公告