- 博客(4)
- 收藏
- 关注
原创 Django 中间件Middleware
中间件(Middleware)用法: django 中的中间件(middleware),在django中,中间件其实就是一个类,在请求到来和结束后,django会根据自己的规则在合适的时机执行中间件中相应的方法。setting.pyMIDDLEWARE = [ 'django.middleware.security.SecurityMiddleware', 'dja...
2018-06-25 17:36:29
285
原创 NGINX + uWSGI +Django +ubantu下发布
先安装uWSGI :pip install uwsgi测试测试是否安装成功:$ uwsgi --version2.0.15测试文件:# test.pydef application(env, start_response): start_response('200 OK', [('Content-Type','text/html')]) return [b"Hello World"] ...
2018-06-25 12:01:23
698
原创 scrapy 框架 +MongoDB 爬取小说网站
1.先行安装MongoDB数据库,并通过mongod --dbpath "D:\mongodb\data"启动数据库。 scrapy <command> [options] [args]Available commands: bench Run quick benchmark test fetch Fetch a URL using the Scr...
2018-06-23 09:56:14
878
原创 Numpy的基本操作
import numpy as npprint(help(np.genfromtxt))Help on function genfromtxt in module numpy.lib.npyio:genfromtxt(fname, dtype=<class 'float'>, comments='#', delimiter=None, skip_header=0, skip_f...
2018-06-21 06:55:22
794
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅