python
yiluoAK_47
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
nginx + django + uwsgi 配置
PYTHON安装扩展包有两个easy_install和pip,现安装pip然后用pip 安装 uwsgisudo pip install uwsgi好了。然后进去你的DJANGO项目目录下新建一个django.ini的文件。配置内容:[uwsgi]# set the http porthttp-socket=:8001# set socket portsoc转载 2015-03-27 19:05:49 · 1092 阅读 · 0 评论 -
python安装mysql-python
ubuntu 系统下进行的操作首先安装了pip工具sudo apt-get install python-pip然后使用sudo pip install mysql-python安装第三方库.但是此时报错 sh: mysql_config: not foundTraceback (most recent call last): File "se原创 2015-03-17 11:24:58 · 3884 阅读 · 0 评论 -
urllib2.HTTPError: HTTP Error 403: Forbidden
[python] view plaincopy"font-size:18px;">应用例子: #coding:utf-8 import urllib2 request = urllib2.Request('http://blog.youkuaiyun.com/nevasun') #在请求加上头信息,伪装成浏览器访问 request.add_header('User-Age转载 2015-03-18 15:35:49 · 1301 阅读 · 0 评论
分享