Repository: DiCaprio17/fruits-and-vegetables Branch: master Commit: 0f12aaaf25de Files: 102 Total size: 356.4 KB Directory structure: gitextract_iu6wfhn7/ ├── .gitattributes ├── README.md ├── dailyfresh/ │ ├── .idea/ │ │ ├── dailyfresh.iml │ │ ├── dictionaries/ │ │ │ └── smart.xml │ │ ├── misc.xml │ │ ├── modules.xml │ │ └── workspace.xml │ ├── apps/ │ │ ├── __init__.py │ │ ├── cart/ │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── migrations/ │ │ │ │ └── __init__.py │ │ │ ├── models.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── goods/ │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── migrations/ │ │ │ │ ├── 0001_initial.py │ │ │ │ └── __init__.py │ │ │ ├── models.py │ │ │ ├── search_indexes.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ ├── order/ │ │ │ ├── __init__.py │ │ │ ├── admin.py │ │ │ ├── alipay_public_key.pem │ │ │ ├── app_private_key.pem │ │ │ ├── migrations/ │ │ │ │ ├── 0001_initial.py │ │ │ │ ├── 0002_auto_20171113_1813.py │ │ │ │ └── __init__.py │ │ │ ├── models.py │ │ │ ├── tests.py │ │ │ ├── urls.py │ │ │ └── views.py │ │ └── user/ │ │ ├── __init__.py │ │ ├── admin.py │ │ ├── migrations/ │ │ │ ├── 0001_initial.py │ │ │ └── __init__.py │ │ ├── models.py │ │ ├── tests.py │ │ ├── urls.py │ │ └── views.py │ ├── celery_tasks/ │ │ ├── __init__.py │ │ └── tasks.py │ ├── dailyfresh/ │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ └── wsgi.py │ ├── dailyfresh.sql │ ├── db/ │ │ ├── __init__.py │ │ └── base_model.py │ ├── manage.py │ ├── static/ │ │ ├── cart(1).html │ │ ├── css/ │ │ │ ├── main.css │ │ │ └── reset.css │ │ ├── detail.html │ │ ├── index.html │ │ ├── js/ │ │ │ ├── jquery.cookie.js │ │ │ ├── register.js │ │ │ └── slide.js │ │ ├── list.html │ │ ├── login.html │ │ ├── place_order.html │ │ ├── register.html │ │ ├── test.html │ │ ├── user_center_info.html │ │ ├── user_center_order.html │ │ └── user_center_site.html │ ├── templates/ │ │ ├── base.html │ │ ├── base_detail_list.html │ │ ├── base_no_cart.html │ │ ├── base_user_center.html │ │ ├── cart.html │ │ ├── detail.html │ │ ├── index.html │ │ ├── list.html │ │ ├── login.html │ │ ├── order_comment.html │ │ ├── place_order.html │ │ ├── register.html │ │ ├── search/ │ │ │ ├── indexes/ │ │ │ │ └── goods/ │ │ │ │ └── goodssku_text.txt │ │ │ ├── search.html │ │ │ └── search1.html │ │ ├── static_base.html │ │ ├── static_index.html │ │ ├── user_center_info.html │ │ ├── user_center_order.html │ │ └── user_center_site.html │ ├── utils/ │ │ ├── __init__.py │ │ ├── fdfs/ │ │ │ ├── __init__.py │ │ │ ├── client.conf │ │ │ └── storage.py │ │ └── mixin.py │ ├── uwsgi.ini │ ├── uwsgi.log │ ├── uwsgi.pid │ ├── uwsgi2.ini │ ├── uwsgi2.log │ ├── uwsgi2.pid │ └── whoosh_index/ │ └── _MAIN_0.toc └── requirements.txt ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitattributes ================================================ *.js linguist-language=Python ================================================ FILE: README.md ================================================ # fruits-and-vegetables 基于python3.6和Django1.8.2 使用Python Web框架Django开发的一个B2C网上蔬果商城,包含用户、商品、购物车、订单等模块等等,使用了Celery异步任务队列,MySQL数据库,Redis数据库,FastDFS分布式的图片存储服 务,Nginx负载均衡服务器,uWSGI应用服务器。 # 项目总结 1. 生鲜类产品 B2C PC电脑端网页 2. 功能模块:用户模块 商品模块(首页、 搜索、商品) 购物车模块 订单模块(下单、 支付) 3. 用户模块:注册、登录、激活、退出、个人中心、地址 4. 商品模块:首页、详情、列表、搜索(haystack+whoosh) 5. 购物车: 增加、删除、修改、查询 6. 订单模块:确认订单页面、提交订单(下单)、请求支付、查询支付结果、评论 7. django默认的认证系统 AbstractUser 8. itsdangerous 生成签名的token (序列化工具 dumps loads) 9. 邮件 (django提供邮件支持 配置参数 send_mail) 10. celery (重点 整体认识 异步任务) 11. 页面静态化 (缓解压力 celery nginx) 12. 缓存(缓解压力, 保存的位置、有效期、与数据库的一致性问题) 13. FastDFS (分布式的图片存储服务, 修改了django的默认文件存储系统) 14. 搜索( whoosh 索引 分词) 15. 购物车redis 哈希 历史记录redis list 16. ajax 前端用ajax请求后端接口 17. 事务 18. 高并发的库存问题 (悲观锁、乐观锁) 19. 支付的使用流程 20. nginx (负载均衡 提供静态文件) # 安装 使用pip安装:pip install -r requirements.txt # 配置 ## uwsgi 遵循wsgi协议的web服务器。 ### uwsgi的安装 pip install uwsgi ### uwsgi的配置 项目部署时,需要把settings.py文件夹下的: DEBUG=FALSE ALLOWED_HOSTS=[‘*’] [uwsgi] #使用nginx连接时使用 #socket=127.0.0.1:8080 #直接做web服务器使用 http=127.0.0.1:8080 #项目目录 chdir=/Users/smart/Desktop/dj/bj17/dailyfresh #项目中wsgi.py文件的目录,相对于项目目录 wsgi-file=dailyfresh/wsgi.py processes=4 threads=2 master=True pidfile=uwsgi.pid daemonize=uwsgi.log virtualenv=/Users/smart/.virtualenvs/dailyfresh ### uwsgi的启动和停止 启动:uwsgi –-ini 配置文件路径 例如:uwsgi --ini uwsgi.ini 停止:uwsgi --stop uwsgi.pid路径 例如:uwsgi --stop uwsgi.pid ## nginx Nginx (engine x) 是一个高性能的HTTP和反向代理web服务器 ### nginx 配置转发请求给uwsgi location / { include uwsgi_params; uwsgi_pass uwsgi服务器的ip:port; } ### nginx配置处理静态文件 django settings.py中配置收集静态文件路径: - STATIC_ROOT=收集的静态文件路径 例如:/var/www/dailyfresh/static; django 收集静态文件的命令: python manage.py collectstatic 执行上面的命令会把项目中所使用的静态文件收集到STATIC_ROOT指定的目录下。 收集完静态文件之后,让nginx提供静态文件,需要在nginx配置文件中增加如下配置: location /static { alias /var/www/dailyfresh/static/; } ### nginx转发请求给另外地址 在location 对应的配置项中增加 proxy_pass 转发的服务器地址。 如当用户访问127.0.0.1时,在nginx中配置把这个请求转发给172.16.179.131:80(nginx)服务器,让这台服务器提供静态首页。 配置如下: location = /{ proxy_pass http://172.16.179.131; } ### nginx配置upstream实现负载均衡 ngnix 配置负载均衡时,在server配置的前面增加upstream配置项。 upstream dailyfresh { server 127.0.0.1:8080; server 127.0.0.1:8081; } ================================================ FILE: dailyfresh/.idea/dailyfresh.iml ================================================ ================================================ FILE: dailyfresh/.idea/dictionaries/smart.xml ================================================ ================================================ FILE: dailyfresh/.idea/misc.xml ================================================ AngularJS ================================================ FILE: dailyfresh/.idea/modules.xml ================================================ ================================================ FILE: dailyfresh/.idea/workspace.xml ================================================ Address GoodsSKU
全部商品2
  • 商品名称
  • 商品单位
  • 商品价格
  • 数量
  • 小计
  • 操作
  • 奇异果
    25.80元/500g
  • 500g
  • 25.80元
  • + -
  • 25.80元
  • 删除
  • 大兴大棚草莓
    16.80元/500g
  • 500g
  • 16.80元
  • + -
  • 16.80元
  • 删除
  • 全选
  • 合计(不含运费):¥42.60
    共计2件商品
  • 去结算
================================================ FILE: dailyfresh/static/css/main.css ================================================ body{font-family:'Microsoft Yahei';font-size:12px;color:#666;} html,body{height:100%} /* 顶部样式 */ .header_con{ background-color:#f7f7f7; height:29px; border-bottom:1px solid #dddddd } .header{ width:1200px; height:29px; margin:0 auto; } .welcome,.login_info,.login_btn,.user_link{ line-height:29px; } .login_info{ display:none; } .login_info em{color:#ff8800} .login_btn a,.user_link a{ color:#666; } .login_btn a:hover,.user_link a:hover{ color:#ff8800; } .login_btn span,.user_link span{ color:#cecece; margin:0 10px; } /* logo、搜索框、购物车样式 */ .search_bar{width:1200px;height:115px;margin:0 auto;} .logo{width:150px;height:59px;margin:29px 0 0 17px;} .search_con{width:616px;height:38px;border:1px solid #37ab40;margin:34px 0 0 124px;background:url(../images/icons.png) 10px -338px no-repeat;} .search_con .input_text{width:470px;height:34px;border:0px;margin:2px 0 0 36px;outline:none;font-size:12px;color:#737272;font-family:'Microsoft Yahei'} .search_con .input_btn{ width:100px;height:38px;background-color:#37ab40;border:0px;font-size:14px;color:#fff;font-family:'Microsoft Yahei';outline:none;cursor:pointer; } .guest_cart{ width:200px;height:40px;margin-top:34px; } .guest_cart .cart_name{ width:158px;height:38px;line-height:38px;border:1px solid #dddddd;display:block;background:url(../images/icons.png) 13px -300px no-repeat;font-size:14px;color:#37ab40;text-indent:56px; } .guest_cart .goods_count{ width:40px;height:40px;text-align:center;line-height:40px;font-size:18px; font-weight:bold;color:#fff;background-color:#ff8800; } /* 菜单、幻灯片样式 */ .navbar_con{height:40px;border-bottom:2px solid #39a93e} .navbar{width:1200px;margin:0 auto;} .navbar h1{width:200px;height:40px;line-height:40px;text-align: center;font-size:14px;color:#fff;background-color:#39a93e;} .navbar .subnav_con{width:200px;height:40px;background-color:#39a93e;position:relative;cursor:pointer;} .navbar .subnav_con h1{position:absolute;left:0;top:0;text-align:left;text-indent:40px} .navbar .subnav_con span{display:block;width:16px;height:9px;background:url(../images/down.png) no-repeat;position:absolute;right:27px;top:16px;transition:all 300ms ease-in; } .navbar .subnav_con:hover span{transform:rotateZ(180deg)} .navbar .subnav_con .subnav{position:absolute;left:0;top:40px;display:none;border-top:2px solid #39a93e;} .navbar .subnav_con:hover .subnav{display:block;} .navlist{margin-left:34px;} .navlist li{height:40px;float:left;line-height:40px;} .navlist li a{color:#666;font-size:14px} .navlist li a:hover{color:#ff8800} .navlist .interval{margin:0 15px;} .center_con{width:1200px;height:270px;margin:0 auto;} .subnav{width:198px;height:270px;border-left:1px solid #eee;border-right:1px solid #eee;} .subnav li{height:44px;border-bottom:1px solid #eee;background:url(../images/icons.png) 178px -257px no-repeat #fff;} .subnav li a{display:block;height:44px;line-height:44px;text-indent:71px;font-size:14px;color:#333} .subnav li a:hover{color:#ff8800} .subnav li .fruit{background:url(../images/icons.png) 28px 0px no-repeat;} .subnav li .seafood{background:url(../images/icons.png) 28px -43px no-repeat;} .subnav li .meet{background:url(../images/icons.png) 28px -86px no-repeat;} .subnav li .egg{background:url(../images/icons.png) 28px -132px no-repeat;} .subnav li .vegetables{background:url(../images/icons.png) 28px -174px no-repeat;} .subnav li .ice{background:url(../images/icons.png) 28px -220px no-repeat;} .slide{width:760px;height:270px;position:relative;overflow:hidden;} .slide .slide_pics{position:relative;left:0;top:0;width:760px;height:270px;} .slide .slide_pics li{width:760px;height:270px;position:absolute;left:0;top:0} .slide .prev,.slide .next{width:17px;height:23px;background:url(../images/icons.png) left -388px no-repeat;position:absolute;left:11px;top:122px;cursor:pointer;} .slide .next{background-position:left -428px;left:732px;} .points{width:100%;height:11px;position:absolute;left:0;top:250px;text-align:center;} .points li{display:inline-block;width:11px;height:11px;margin:0 5px;background-color:#9f9f9f;border-radius:50%;cursor:pointer;} .points li.active{background-color:#cecece} .adv{width:240px;height:270px; overflow:hidden; background-color:gold;} .adv a{display:block;float:left;} /* 商品列表样式 */ .list_model{width:1200px;height:340px;margin:15px auto 0;} .list_title{height:40px;border-bottom:2px solid #42ad46} .list_title h3{height:40px;line-height:40px;font-size:16px;color:#37ab40;font-weight:bold;} .list_title .subtitle{height:20px;line-height:20px;margin-top:15px;} .list_title .subtitle span{color:#666;margin:0 10px 0 20px;} .list_title .subtitle a{color:#666;margin:0 5px;} .list_title .subtitle a:hover,.goods_more:hover{color:#ff8800} .goods_more{height:20px;margin-top:15px;color:#666} .goods_con{height:300px;} .goods_banner{width:200px;height:300px;} .goods_banner img{width:200px;height:300px;} .goods_list{width:1000px;height:299px;border-bottom:1px solid #ededed} .goods_list li{height:299px;width:249px;border-right:1px solid #ededed;float:left} .goods_list li:hover{width:248px;height:297px;border:1px solid gold;} .goods_list li:hover img{opacity:0.8} .goods_list li h4{width:200px;height:50px;margin:20px auto 0;text-align:center;} .goods_list li h4 a{font-size:14px;color:#666;font-weight:normal;line-height:24px;} .goods_list li h4 a:hover{color:#ff8800} .goods_list li img{display:block;width:180px;height:180px;margin:0 auto;} .goods_list li .prize{text-align:center;font-size:20px;color:#c40000;margin-top:5px;} /* 页面底部样式 */ .footer{ border-top:2px solid #42ad46; margin:30px 0; } .foot_link{text-align:center;margin-top:30px;} .foot_link a,.foot_link span{color:#4e4e4e;} .foot_link a:hover{color:#ff8800} .foot_link span{padding:0 10px} .footer p{text-align:center; margin-top:10px;} /* 二级页面面包屑导航 */ .breadcrumb{ width:1200px;height:40px;margin:0 auto; } .breadcrumb a{line-height:40px;color:#37ab40} .breadcrumb a:hover{color:#ff8800} .breadcrumb span{line-height:40px;color:#666;padding:0 5px;} .main_wrap{width:1200px;margin:0 auto;} .l_wrap{width:200px;} .r_wrap{width:980px;} /* 新品推荐样式 */ .new_goods{ border:1px solid #ededed; border-top:2px solid #37ab40; padding-bottom:10px; } .new_goods h3{ height:33px;line-height:33px;background-color:#fcfcfc;border-bottom:1px solid #ededed;font-size:14px;font-weight:normal;text-indent:10px; } .new_goods ul{width:160px;margin:0 auto;overflow:hidden;} .new_goods li{border-bottom:1px solid #ededed;margin-bottom:-1px;} .new_goods li img{display:block;width:150px;height:150px;margin:10px auto;} .new_goods li h4{width:160px;margin:0 auto;} .new_goods li h4 a{font-weight:normal;color:#666;display:block;width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;} .new_goods li .prize{font-size:14px;color:#da260e;margin:10px auto;} /* 商品列表样式 */ .sort_bar{height:30px;background-color:#f0fdec} .sort_bar a{display:block;height:30px;line-height:30px;padding:0 20px;float:left;color:#000} .sort_bar .active{background-color:#37ab40;color:#fff;} .goods_type_list{ margin:10px auto 0; } .goods_type_list li{ width:196px; float:left; margin-bottom:10px } .goods_type_list li img{width:160px;height:160px;display:block;margin:10px auto;} .goods_type_list li h4{width:160px;margin:0 auto;} .goods_type_list li h4 a{font-weight:normal;color:#666;display:block;width:160px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;} .operate{width:160px;margin:10px auto;position:relative;} .goods_type_list .operate .prize{color:#da260e; font-size:14px;} .goods_type_list .operate .unit{color:#999;padding-left:5px;} .goods_type_list .operate .add_goods{display:inline-block;width:15px;height:15px;background:url(../images/shop_cart.png);position:absolute;right:0;top:3px;} /* 分页样式 */ .pagenation{height:32px;text-align:center;font-size:0;margin:30px auto;} .pagenation a{display:inline-block;border:1px solid #d2d2d2;background-color:#f8f6f7;font-size:12px;padding:7px 10px;color:#666;margin:5px} .pagenation .active{background-color:#fff;color:#43a200} /* 商品详情样式 */ .goods_detail_con{ width:1198px; height:398px; border:1px solid #ededed; margin:0 auto 20px; } .goods_detail_pic{width:350px;height:350px;margin:24px 0 0 24px;} .goods_detail_list{ width:730px;height:350px;margin:24px 24px 0 0; } .goods_detail_list h3{font-size:24px;line-height:24px;color:#666;font-weight:normal;} .goods_detail_list p{color:#666;line-height:40px;} .prize_bar{height:72px;background-color:#fff5f5;line-height:72px;} .prize_bar .show_pirze{font-size:20px;color:#ff3e3e;padding-left:20px} .prize_bar .show_pirze em{font-style:normal;font-size:36px;padding-left:10px} .prize_bar .show_unit{padding-left:150px} .goods_num{height:52px;margin-top:19px;} .goods_num .num_name{width:70px;height:52px;line-height:52px;} .goods_num .num_add{width:75px;height:50px;border:1px solid #dddddd} .goods_num .num_add input{width:49px;height:50px;text-align:center;line-height:50px;border:0px;outline:none;font-size:14px;color:#666} .goods_num .num_add .add,.goods_num .num_add .minus{width:25px;line-height:25px;text-align:center;border-left:1px solid #ddd;border-bottom:1px solid #ddd;color:#666;font-size:14px} .goods_num .num_add .minus{border-bottom:0px} .total{height:35px;line-height:35px;margin-top:25px;} .total em{font-style:normal;color:#ff3e3e;font-size:18px} .operate_btn{height:40px;margin-top:35px;font-size:0;position:relative;} .operate_btn .buy_btn,.operate_btn .add_cart{display:inline-block;width:178px;height:38px;border:1px solid #c40000;font-size:14px;color:#c40000;line-height:38px;text-align:center;background-color:#ffeded;} .operate_btn .add_cart{background-color:#c40000;color:#fff;margin-left:10px;position:relative;z-index:10;} .add_jump{width:20px;height:20px;background-color:#c40000;position:absolute;left:268px;top:10px;border-radius:50%;z-index:9;display:none;} .detail_tab{ height:35px; border-bottom:1px solid #37ab40 } .detail_tab li{height:34px;line-height:34px;padding:0 30px;font-size:14px;color:#333333;float:left;border:1px solid #e8e8e8;border-bottom:0px;cursor:pointer;background-color:#faf8f8} .detail_tab li.active{border-top:2px solid #37ab40;position:relative;background-color:#fff;border-left:1px solid #37ab40;border-right:1px solid #37ab40;top:-1px;height:35px;} .tab_content dt{margin-top:10px;font-size:16px;color:#044d39} .tab_content dd{line-height:24px;margin-top:5px;} /* 登录页 */ .login_top{width:960px;height:130px;margin:0 auto;} .login_logo{display:block;width:193px;height:76px;margin-top:30px;} .login_form_bg{height:480px;background-color:#518e17} .no-mp{margin-top:0px;} .login_form_wrap{width:960px;height:480px;margin:0 auto;} .login_banner{width:381px;height:322px;background:url(../images/login_banner.png) no-repeat;margin-top:90px;} .slogan{width:40px;height:300px;font-size:30px;color:#f0f9e8;text-align:center;line-height:36px;margin:80px 0 0 120px} .login_form{width:368px;height:378px;border:1px solid #c6c6c5;background-color:#fff; margin-top:50px;} .login_title{height:60px;width:308px;margin:10px auto;border-bottom:1px solid #e0e0e0;} .login_title h1{font-size:24px;height:60px;line-height:60px;color:#a8a8a8;float:left;font-weight:bold;margin-left:44px;} .login_title a{width:100px;height:20px;display:block;font-size:16px;color:#5fb42a;text-indent:26px;background:url(../images/icons02.png) left 5px no-repeat;float:left;margin:20px 0 0 36px} .form_input{width:308px;height:250px;margin:20px auto;position:relative;} .name_input,.pass_input{width:306px;height:36px;border:1px solid #e0e0e0;background:url(../images/icons02.png) 280px -41px no-repeat #f8f8f8;outline:none;font-size:14px;text-indent:10px;position: absolute;left:0;top:0} .pass_input{top:65px;background-position:280px -95px;} .user_error,.pwd_error{color:#f00;position:absolute;left:0;top:43px;display:none} .pwd_error{top:110px;} .more_input{position:absolute;left:0;top:130px;width:100%} .more_input input{float:left;margin-top:2px;} .more_input label{float:left;margin-left:10px;} .more_input a{float:right;color:#666} .more_input a:hover{color:#ff8800} .input_submit{width:100%;height:40px;position:absolute;left:0;top:180px;background-color:#47aa34;color:#fff;font-size:22px;border:0px;font-family:'Microsoft Yahei';cursor:pointer;} /* 注册页面 */ .register_con{ width:700px; height:560px; margin:50px auto 0; background:url(../images/interval_line.png) 300px top no-repeat; } .l_con{width:300px;} .reg_logo{width:200px;height:76px;float:right;margin-right:30px;} .reg_slogan{width:300px;height:30px;float:right;text-align:right;font-size:24px;color:#69a81e;margin:20px 30px 0 0;} .reg_banner{width:251px;height:329px;background:url(../images/register_banner.png) no-repeat;float:right; margin:20px 10px 0 0;opacity:0.5} .r_con{width:400px;} .reg_title{width:360px;height:50px;float:left;margin-left:30px;border-bottom:1px solid #e0e0e0} .reg_title h1{height:50px;line-height:50px;float:left;font-size:24px;color:#a8a8a8;font-weight:bold;} .reg_title a{float:right;height:20px;line-height:20px;font-size:16px;color:#5fb42a;padding-right:20px;background:url(../images/icons02.png) 35px 3px no-repeat;margin-top:15px} .reg_form{width:360px;margin:30px 0 0 30px;float:left;position:relative;} .reg_form li{height:70px;} .reg_form li label{width:70px;height:40px;line-height:40px;float:left;font-size:14px;color:#a8a8a8} .reg_form li input{width:288px;height:38px;border:1px solid #e0e0e0;float:left;outline:none;text-indent:10px;background-color:#f8f8f8} .reg_form li.agreement input{width:15px;height:15px;float:left;margin-top:13px} .reg_form li.agreement label{width:300px;float:left;margin-left:10px;} .reg_form li.reg_sub input{width:360px;height:40px;background-color:#47aa34;font-size:18px;color:#fff;font-family:'Microsoft Yahei';cursor:pointer;} .reg_form li .error_tip{float:left;height:30px;line-height:30px;margin-left:70px;color:#e62e2e;display:none;} .reg_form li .error_tip2{float:left;height:20px;line-height:20px;color:#e62e2e;display:none;} .sub_page_name{font-size:18px;color:#666;margin:50px 0 0 20px} .total_count{ width:1200px;margin:0 auto;height:40px;line-height:40px;font-size:14px; } .total_count em{ font-size:16px;color:#ff4200;margin:0 5px; } .cart_list_th{width:1198px;border:1px solid #ddd;background-color:#f7f7f7;margin:0 auto;} .cart_list_th li{height:40px;line-height:40px;float:left;text-align:center;} .cart_list_th .col01{width:26%;} .cart_list_th .col02{width:16%;} .cart_list_th .col03{width:13%;} .cart_list_th .col04{width:12%;} .cart_list_th .col05{width:15%;} .cart_list_th .col06{width:18%;} .cart_list_td{width:1198px;border:1px solid #ddd;background-color:#edfff9;margin:0 auto;margin-top:-1px;} .cart_list_td li{height:120px;line-height:120px;float:left;text-align:center;} .cart_list_td .col01{width:4%;} .cart_list_td .col02{width:12%;} .cart_list_td .col03{width:10%;} .cart_list_td .col04{width:16%;} .cart_list_td .col05{width:13%;} .cart_list_td .col06{width:12%;} .cart_list_td .col07{width:15%;} .cart_list_td .col08{width:18%;} .cart_list_td .col02 img{width:100px;height:100px;border:1px solid #ddd;display:block;margin:10px auto 0;} .cart_list_td .col03{height:48px;text-align:left;line-height:24px;margin-top:38px;} .cart_list_td .col03 em{color:#999} .cart_list_td .col08 a{color:#666} .cart_list_td .col06 .num_add{width:98px;height:28px;border:1px solid #ddd;margin:40px auto 0;} .cart_list_td .col06 .num_add a{width:29px;height:28px;line-height:28px;background-color:#f3f3f3;font-size:14px;color:#666} .cart_list_td .col06 .num_add input{width:38px;height:28px;text-align:center;line-height:30px;border:0px;display:block;float:left;outline:none;border-left:1px solid #ddd;border-right:1px solid #ddd;} .settlements{width:1198px;height:78px;border:1px solid #ddd;background-color:#fff4e8;margin:-1px auto 0;} .settlements li{line-height:78px;float:left;} .settlements .col01{width:4%;text-align:center} .settlements .col02{width:12%;} .settlements .col03{width:69%; height:48px; line-height:28px;text-align:right;margin-top:10px;} .settlements .col03 span{color:#ff0000;padding-right:5px} .settlements .col03 em{color:#ff3d3d;font-size:22px;font-weight:bold;} .settlements .col03 span{color:#ff0000;} .settlements .col03 b{color:#ff0000;font-size:14px;padding:0 5px;} .settlements .col04{width:14%;text-align:center;float:right;} .settlements .col04 a{display:block;height:78px;background-color:#ff3d3d;text-align:center;line-height:78px;color:#fff;font-size:24px} .common_title{width:1200px;margin:20px auto 0;font-size:14px;} .common_list_con{width:1200px;border:1px solid #dddddd;border-top:2px solid #00bc6f;margin:10px auto 0;background-color:#f7f7f7;position:relative;} .common_list_con dl{margin:20px;} .common_list_con dt{font-size:14px;font-weight:bold;margin-bottom:10px} .common_list_con dd input{vertical-align:bottom;margin-right:10px} .edit_site{position:absolute; right:20px;top:30px;width:100px;height:30px;background-color:#37ab40;text-align:center;line-height:30px;color:#fff} .pay_style_con{margin:20px;} .pay_style_con input{float:left;margin:14px 7px 0 0;} .pay_style_con label{float:left;border:1px solid #ccc;background-color:#fff;padding:10px 10px 10px 40px;margin-right:25px} .pay_style_con .cash{background:url(../images/pay_icons.png) 8px top no-repeat #fff;} .pay_style_con .weixin{background:url(../images/pay_icons.png) 6px -36px no-repeat #fff;} .pay_style_con .zhifubao{background:url(../images/pay_icons.png) 12px -72px no-repeat #fff;width:50px;height:16px} .pay_style_con .bank{background:url(../images/pay_icons.png) 6px -108px no-repeat #fff;} .goods_list_th{height:40px;border-bottom:1px solid #ccc} .goods_list_th li{float:left;line-height:40px;text-align:center;} .goods_list_th .col01{width:25%} .goods_list_th .col02{width:20%} .goods_list_th .col03{width:25%} .goods_list_th .col04{width:15%} .goods_list_th .col05{width:15%} .goods_list_td{height:80px;border-bottom:1px solid #eeeded} .goods_list_td li{float:left;line-height:80px;text-align:center;} .goods_list_td .col01{width:4%} .goods_list_td .col02{width:6%} .goods_list_td .col03{width:15%} .goods_list_td .col04{width:20%} .goods_list_td .col05{width:25%} .goods_list_td .col06{width:15%} .goods_list_td .col07{width:15%} .goods_list_td .col02{text-align:right} .goods_list_td .col02 img{width:63px;height:63px;border:1px solid #ddd;display:block;margin:7px 0;float:right;} .goods_list_td .col03{text-align:left;text-indent:20px} .settle_con{margin:10px} .total_goods_count,.transit,.total_pay{line-height:24px;text-align:right} .total_goods_count em,.total_goods_count b,.transit b,.total_pay b{font-size:14px;color:#ff4200;padding:0 5px;} .order_submit{width:1200px;margin:20px auto;} .order_submit a{width:160px;height:40px;line-height:40px;text-align:center;background-color:#47aa34;color:#fff;font-size:16px;display:block;float:right} .order_list_th{width:1198px;border:1px solid #ddd;background-color:#f7f7f7;margin:20px auto 0;} .order_list_th li{float:left;height:30px;line-height:30px} .order_list_th .col01{width:20%;margin-left:20px} .order_list_th .col02{width:20%} .order_list_table{ width:1200px; border-collapse:collapse; border-spacing:0px; border:1px solid #ddd; margin:-1px auto 0; } .order_list_table td{ border:1px solid #ddd; text-align:center; } .order_goods_list{border-bottom:1px solid #ddd;margin-bottom:-2px;} .order_goods_list li{float:left; height:80px;line-height:80px;} .order_goods_list .col01{width:20%} .order_goods_list .col01 img{width:60px;height:60px;border:1px solid #ddd;margin:10px auto;} .order_goods_list .col02{width:50%;text-align:left;} .order_goods_list .col02 em{color:#999;margin-left:10px} .order_goods_list .col03{width:10%} .order_goods_list .col04{width:20%} .oper_btn{display:inline-block;border:1px solid #ddd;color:#666;padding:5px 10px} .popup_con{display:none;} .popup{width:300px;height:150px;border:1px solid #dddddd;border-top:2px solid #00bc6f;background-color:#f7f7f7;position:fixed; left:50%; margin-left:-150px; top:50%; margin-top:-75px; z-index:1000; } .popup p{height:150px;line-height:150px;text-align:center;font-size:18px;} .mask{width:100%;height:100%;position:fixed;left:0;top:0;background-color:#000;opacity:0.3;z-index:999;} .main_con{ width:1200px; margin:0 auto; background:url(../images/left_bg.jpg) repeat-y; } .left_menu_con{ width:200px; float:left; } .left_menu_con h3{ font-size:16px; line-height:40px; border-bottom:1px solid #ddd; text-align:center; margin-bottom:10px; } .left_menu_con ul li{ line-height:40px; text-align:center; font-size:14px; } .left_menu_con ul li a{ color:#666; } .left_menu_con ul li .active{ color:#ff8800; font-weight:bold; } .right_content{ width:980px; float:right; min-height:500px; } .w980{ width:980px; } .w978{ width:978px; } .common_title2{height:20px;line-height:20px;font-size:16px;margin:10px 0;} .user_info_list{ background-color:#f9f9f9; margin:10px 0 15px; padding:10px 0; height:90px; } .user_info_list li{ line-height:30px; text-indent:30px; font-size:14px; } .user_info_list li span{ width:100px; float:left; text-align:right; } .info_con{ width:980px; } .info_l{ width:600px; float:left; } .info_r{ width:360px; float:right; } .site_con{ background-color:#f9f9f9; padding:10px 0; margin-bottom:20px; } .site_con dt{ font-size:14px; line-height:30px; text-indent:30px; font-weight:bold; } .site_con dd{ font-size:14px; line-height:30px; text-indent:30px; } .site_con .form_group{ height:40px; line-height:40px; margin-top:10px; } .site_con .form_group label{ width:100px; float:left; text-align:right; font-size:14px; height:40px; line-height:40px; } .site_con .form_group input{ width:300px; height:25px; border:1px solid #ddd; float:left; outline:none; margin-top:7px; text-indent:10px; } .site_con .form_group2{ height:90px; } .site_area{ width:280px; height:60px; border:1px solid #ddd; outline:none; padding:10px; } .info_submit{ width:80px; height:30px; background-color:#37ab40; border:0px; color:#fff; margin:10px 0 10px 100px; cursor:pointer; font-family:'Microsoft Yahei' } .info_address{ width:80px; height:30px; background-color:#37ab40; border:0px; color:#fff; margin:10px 0 10px 30px; cursor:pointer; font-family:'Microsoft Yahei' } .stress{ color:#ff8800; } ================================================ FILE: dailyfresh/static/css/reset.css ================================================ /* 把标签默认的间距设为0 */ body,ul,ol,p,h1,h2,h3,h4,h5,h6,dl,dd,select,input,textarea,form{margin:0;padding:0} /* 让h标签文字大小继承body的文字设置 */ h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;} /* 去掉列表默认的图标 */ ul,ol{list-style:none;} /* 去掉em默认的斜体 */ em{font-style: normal;} /* 去掉a标签默认的下划线 */ a{text-decoration:none;} /* 去掉加链接时产生的框线 */ img{border:0;} /* 清除浮动 */ .clearfix:before,.clearfix:after{content:"";display:table} .clearfix:after{clear:both;} .clearfix{zoom:1} /* 浮动 */ .fl{float:left} .fr{float:right} ================================================ FILE: dailyfresh/static/detail.html ================================================ 天天生鲜-商品详情
欢迎来到天天生鲜!

大兴大棚草莓

草莓浆果柔软多汁,味美爽口,适合速冻保鲜贮藏。草莓速冻后,可以保持原有的色、香、味,既便于贮藏,又便于外销。

¥16.80 单 位:500g
数 量:
+ -
总价:16.80元

新品推荐

  • 商品介绍
  • 评论
商品详情:
草莓采摘园位于北京大兴区 庞各庄镇四各庄村 ,每年1月-6月面向北京以及周围城市提供新鲜草莓采摘和精品礼盒装草莓,草莓品种多样丰富,个大香甜。所有草莓均严格按照有机标准培育,不使用任何化肥和农药。草莓在采摘期间免洗可以直接食用。欢迎喜欢草莓的市民前来采摘,也欢迎各大单位选购精品有机草莓礼盒,有机草莓礼盒是亲朋馈赠、福利送礼的最佳选择。
================================================ FILE: dailyfresh/static/index.html ================================================ 天天生鲜-首页
欢迎来到天天生鲜!
    ================================================ FILE: dailyfresh/static/js/jquery.cookie.js ================================================ /*! * jQuery Cookie Plugin v1.4.1 * https://github.com/carhartl/jquery-cookie * * Copyright 2013 Klaus Hartl * Released under the MIT license */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD define(['jquery'], factory); } else if (typeof exports === 'object') { // CommonJS factory(require('jquery')); } else { // Browser globals factory(jQuery); } }(function ($) { var pluses = /\+/g; function encode(s) { return config.raw ? s : encodeURIComponent(s); } function decode(s) { return config.raw ? s : decodeURIComponent(s); } function stringifyCookieValue(value) { return encode(config.json ? JSON.stringify(value) : String(value)); } function parseCookieValue(s) { if (s.indexOf('"') === 0) { // This is a quoted cookie as according to RFC2068, unescape... s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); } try { // Replace server-side written pluses with spaces. // If we can't decode the cookie, ignore it, it's unusable. // If we can't parse the cookie, ignore it, it's unusable. s = decodeURIComponent(s.replace(pluses, ' ')); return config.json ? JSON.parse(s) : s; } catch(e) {} } function read(s, converter) { var value = config.raw ? s : parseCookieValue(s); return $.isFunction(converter) ? converter(value) : value; } var config = $.cookie = function (key, value, options) { // Write if (value !== undefined && !$.isFunction(value)) { options = $.extend({}, config.defaults, options); if (typeof options.expires === 'number') { var days = options.expires, t = options.expires = new Date(); t.setTime(+t + days * 864e+5); } return (document.cookie = [ encode(key), '=', stringifyCookieValue(value), options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE options.path ? '; path=' + options.path : '', options.domain ? '; domain=' + options.domain : '', options.secure ? '; secure' : '' ].join('')); } // Read var result = key ? undefined : {}; // To prevent the for loop in the first place assign an empty array // in case there are no cookies at all. Also prevents odd result when // calling $.cookie(). var cookies = document.cookie ? document.cookie.split('; ') : []; for (var i = 0, l = cookies.length; i < l; i++) { var parts = cookies[i].split('='); var name = decode(parts.shift()); var cookie = parts.join('='); if (key && key === name) { // If second argument (value) is a function it's a converter... result = read(cookie, value); break; } // Prevent storing a cookie that we couldn't decode. if (!key && (cookie = read(cookie)) !== undefined) { result[name] = cookie; } } return result; }; config.defaults = {}; $.removeCookie = function (key, options) { if ($.cookie(key) === undefined) { return false; } // Must not alter options, thus extending a fresh object... $.cookie(key, '', $.extend({}, options, { expires: -1 })); return !$.cookie(key); }; })); ================================================ FILE: dailyfresh/static/js/register.js ================================================ $(function(){ var error_name = false; var error_password = false; var error_check_password = false; var error_email = false; var error_check = false; $('#user_name').blur(function() { check_user_name(); }); $('#pwd').blur(function() { check_pwd(); }); $('#cpwd').blur(function() { check_cpwd(); }); $('#email').blur(function() { check_email(); }); $('#allow').click(function() { if($(this).is(':checked')) { error_check = false; $(this).siblings('span').hide(); } else { error_check = true; $(this).siblings('span').html('请勾选同意'); $(this).siblings('span').show(); } }); function check_user_name(){ var len = $('#user_name').val().length; if(len<5||len>20) { $('#user_name').next().html('请输入5-20个字符的用户名') $('#user_name').next().show(); error_name = true; } else { $('#user_name').next().hide(); error_name = false; } } function check_pwd(){ var len = $('#pwd').val().length; if(len<8||len>20) { $('#pwd').next().html('密码最少8位,最长20位') $('#pwd').next().show(); error_password = true; } else { $('#pwd').next().hide(); error_password = false; } } function check_cpwd(){ var pass = $('#pwd').val(); var cpass = $('#cpwd').val(); if(pass!=cpass) { $('#cpwd').next().html('两次输入的密码不一致') $('#cpwd').next().show(); error_check_password = true; } else { $('#cpwd').next().hide(); error_check_password = false; } } function check_email(){ var re = /^[a-z0-9][\w\.\-]*@[a-z0-9\-]+(\.[a-z]{2,5}){1,2}$/; if(re.test($('#email').val())) { $('#email').next().hide(); error_email = false; } else { $('#email').next().html('你输入的邮箱格式不正确') $('#email').next().show(); error_check_password = true; } } $('#reg_form').submit(function() { check_user_name(); check_pwd(); check_cpwd(); check_email(); if(error_name == false && error_password == false && error_check_password == false && error_email == false && error_check == false) { return true; } else { return false; } }); }) ================================================ FILE: dailyfresh/static/js/slide.js ================================================ $(function(){ var $slides = $('.slide_pics li'); var len = $slides.length; var nowli = 0; var prevli = 0; var $prev = $('.prev'); var $next = $('.next'); var ismove = false; var timer = null; $slides.not(':first').css({left:760}); $slides.each(function(index, el) { var $li = $('
  • '); if(index==0) { $li.addClass('active'); } $li.appendTo($('.points')); }); $points = $('.points li'); timer = setInterval(autoplay,4000); $('.slide').mouseenter(function() { clearInterval(timer); }); $('.slide').mouseleave(function() { timer = setInterval(autoplay,4000); }); function autoplay(){ nowli++; move(); $points.eq(nowli).addClass('active').siblings().removeClass('active'); } $points.click(function(event) { if(ismove) { return; } nowli = $(this).index(); if(nowli==prevli) { return; } $(this).addClass('active').siblings().removeClass('active'); move(); }); $prev.click(function() { if(ismove) { return; } nowli--; move(); $points.eq(nowli).addClass('active').siblings().removeClass('active'); }); $next.click(function() { if(ismove) { return; } nowli++; move(); $points.eq(nowli).addClass('active').siblings().removeClass('active'); }); function move(){ ismove = true; if(nowli<0) { nowli=len-1; prevli = 0 $slides.eq(nowli).css({left:-760}); $slides.eq(nowli).animate({left:0},800,'easeOutExpo'); $slides.eq(prevli).animate({left:760},800,'easeOutExpo',function(){ ismove = false; }); prevli=nowli; return; } if(nowli>len-1) { nowli = 0; prevli = len-1; $slides.eq(nowli).css({left:760}); $slides.eq(nowli).animate({left:0},800,'easeOutExpo'); $slides.eq(prevli).animate({left:-760},800,'easeOutExpo',function(){ ismove = false; }); prevli=nowli; return; } if(prevli 天天生鲜-商品列表
    欢迎来到天天生鲜!

    新品推荐

    ================================================ FILE: dailyfresh/static/login.html ================================================ 天天生鲜-登录 ================================================ FILE: dailyfresh/static/place_order.html ================================================ 天天生鲜-提交订单
    欢迎来到天天生鲜!

    确认收货地址

    寄送到:
    北京市 海淀区 东北旺西路8号中关村软件园 (李思 收) 182****7528
    编辑收货地址

    支付方式

    商品列表

    • 商品名称
    • 商品单位
    • 商品价格
    • 数量
    • 小计
    • 1
    • 奇异果
    • 500g
    • 25.80元
    • 1
    • 25.80元
    • 2
    • 大兴大棚草莓
    • 500g
    • 16.80元
    • 1
    • 16.80元

    总金额结算

    2件商品,总金额42.60元
    运费:10元
    实付款:52.60元
    ================================================ FILE: dailyfresh/static/register.html ================================================ 天天生鲜-注册
    足不出户 · 新鲜每一天

    用户注册

    登录
    • 提示信息
    • 提示信息
    • 提示信息
    • 提示信息
    • 提示信息
    ================================================ FILE: dailyfresh/static/test.html ================================================ Title ================================================ FILE: dailyfresh/static/user_center_info.html ================================================ 天天生鲜-用户中心
    欢迎来到天天生鲜!

    基本信息

    最近浏览

    ================================================ FILE: dailyfresh/static/user_center_order.html ================================================ 天天生鲜-用户中心
    欢迎来到天天生鲜!

    全部订单

    • 2016-8-21 17:36:24
    • 订单号:56872934
    • 未支付
    • 嘎啦苹果嘎啦苹果11.80元/500g
    • 1
    • 11.80元
    • 嘎啦苹果嘎啦苹果11.80元/500g
    • 1
    • 11.80元
    33.60元 待付款 去付款
    • 2016-8-21 17:36:24
    • 订单号:56872934
    • 已支付
    • 嘎啦苹果嘎啦苹果11.80元/500g
    • 1
    • 11.80元
    • 嘎啦苹果嘎啦苹果11.80元/500g
    • 1
    • 11.80元
    33.60元 已付款 查看物流
    ================================================ FILE: dailyfresh/static/user_center_site.html ================================================ 天天生鲜-用户中心
    欢迎来到天天生鲜!

    收货地址

    当前地址:
    北京市 海淀区 东北旺西路8号中关村软件园 (李思 收) 182****7528

    编辑地址

    ================================================ FILE: dailyfresh/templates/base.html ================================================ {# 首页 注册 登录 #} {% load staticfiles %} {# 网页标题内容块 #} {% block title %}{% endblock title %} {# 网页顶部引入文件块 #} {% block topfiles %}{% endblock topfiles %} {# 网页顶部欢迎信息块 #} {% block header_con %}
    欢迎来到天天生鲜!
    {% if user.is_authenticated %} {% else %} {% endif %}
    {% endblock header_con %} {# 网页顶部搜索框块 #} {% block search_bar %} {% endblock search_bar %} {# 网站主体内容块 #} {% block body %}{% endblock body %} {# 网页底部html元素块 #} {% block bottom %}{% endblock bottom %} {# 网页底部引入文件块 #} {% block bottomfiles %}{% endblock bottomfiles %} ================================================ FILE: dailyfresh/templates/base_detail_list.html ================================================ {# 详情页 列表页 #} {% extends 'base.html' %} {# 网站主体内容块 #} {% block body %} {# 详情页,列表页主体内容块 #} {% block main_content %}{% endblock main_content %} {% endblock body %} ================================================ FILE: dailyfresh/templates/base_no_cart.html ================================================ {# 购物车 提交订单 #} {% extends 'base.html' %} {% load staticfiles %} {# 网页顶部搜索框块 #} {% block search_bar %} {% endblock search_bar %} ================================================ FILE: dailyfresh/templates/base_user_center.html ================================================ {# 用户中心3页面 #} {% extends 'base_no_cart.html' %} {% block title %}天天生鲜-用户中心{% endblock title %} {% block page_title %}用户中心{% endblock page_title %} {% block body %}
    {# 用户中心右侧内容块 #} {% block right_content %}{% endblock right_content %}
    {% endblock body %} ================================================ FILE: dailyfresh/templates/cart.html ================================================ {% extends 'base_no_cart.html' %} {% load staticfiles %} {% block title %}天天生鲜-购物车{% endblock title %} {% block page_title %}购物车{% endblock page_title %} {% block body %}
    全部商品{{ total_count }}
    • 商品名称
    • 商品单位
    • 商品价格
    • 数量
    • 小计
    • 操作
    {% for sku in skus %}
    • {{ sku.name }}
      {{ sku.price }}元/{{ sku.unite }}
    • {{ sku.unite }}
    • {{ sku.price }}元
    • + -
    • {{ sku.amount }}元
    • 删除
    {% endfor %}
      {% csrf_token %}
    • 全选
    • 合计(不含运费):¥{{ total_price }}
      共计{{ total_count }}件商品
    {% endblock body %} {% block bottomfiles %} {% endblock bottomfiles %} ================================================ FILE: dailyfresh/templates/detail.html ================================================ {% extends 'base_detail_list.html' %} {% load staticfiles %} {% block title %}天天生鲜-商品详情{% endblock title %} {% block main_content %}

    {{ sku.name }}

    {{ sku.desc }}

    ¥{{ sku.price }} 单 位:{{ sku.unite }}
    数 量:
    + -

    其他规格:

    总价:16.80元
    {% csrf_token %} 立即购买 加入购物车

    新品推荐

      {% for sku in new_skus %}
    • {{ sku.name }}

      ¥{{ sku.price }}
    • {% endfor %}
    • 商品介绍
    • 评论
    商品详情:
    {{ sku.goods.detail|safe }}
    {% endblock main_content %} {% block bottom %}
    {% endblock bottom %} {% block bottomfiles %} {% endblock bottomfiles %} ================================================ FILE: dailyfresh/templates/index.html ================================================ {% extends 'base.html' %} {% load staticfiles %} {% block title %}天天生鲜-首页{% endblock title %} {% block topfiles %} {% endblock topfiles %} {% block body %}
      {% for banner in goods_banners %}
    • 幻灯片
    • {% endfor %}
      {% for banner in promotion_banners %} {% endfor %}
      {% for type in types %}

      {{ type.name }}

      | {% for banner in type.title_banners %} {{ banner.sku.name }} {% endfor %}
      查看更多 >
      {% endfor %} {% endblock body %} ================================================ FILE: dailyfresh/templates/list.html ================================================ {% extends 'base_detail_list.html' %} {% block title %}天天生鲜-商品列表{% endblock title %} {% block main_content %}

      新品推荐

        {% for sku in new_skus %}
      • {{ sku.name }}

        ¥{{ sku.price }}
      • {% endfor %}
        {% for sku in skus_page %}
      • {{ sku.name }}

        ¥{{ sku.price }} {{ sku.price}}/{{ sku.unite }}
      • {% endfor %}
      {% if skus_page.has_previous %} <上一页 {% endif %} {% for pindex in pages %} {% if pindex == skus_page.number %} {{ pindex }} {% else %} {{ pindex }} {% endif %} {% endfor %} {% if skus_page.has_next %} 下一页> {% endif %}
      {% endblock main_content %} ================================================ FILE: dailyfresh/templates/login.html ================================================ {% extends 'base.html' %} {% load staticfiles %} {% block title %}天天生鲜-登录{% endblock title %} {% block header_con %}{% endblock header_con %} {% block search_bar %}{% endblock search_bar %} {% block body %} {{ errmsg }} {% endblock body %} ================================================ FILE: dailyfresh/templates/order_comment.html ================================================ {% extends 'base_user_center.html' %} {% load staticfiles %} {% block title %}天天生鲜-用户中心{% endblock %} {% block page_title %}用户中心{% endblock page_title %} {% block right_content %}

      订单评价

      • {{order.create_time}}
      • 订单号:{{order.order_id}}
      • {{order.status_name}}
      {% csrf_token %} {# 订单id #} {# 订单中有几个商品 #} {% for order_sku in order.order_skus %}
      • {{order_sku.sku.name}}{{order_sku.price}}/{{order_sku.sku.unite}}
      • {{order_sku.count}}
      {{order_sku.amount}}元
      {% endfor %}
      {% endblock right_content %} ================================================ FILE: dailyfresh/templates/place_order.html ================================================ {% extends 'base_no_cart.html' %} {% load staticfiles %} {% block title %}天天生鲜-提交订单{% endblock title %} {% block page_title %}提交订单{% endblock page_title %} {% block body %}

      确认收货地址

      寄送到:
      {% for addr in addrs %}
      {{ addr.addr }} ({{ addr.receiver }} 收) {{ addr.phone }}
      {% endfor %}
      编辑收货地址

      支付方式

      商品列表

      • 商品名称
      • 商品单位
      • 商品价格
      • 数量
      • 小计
      {% for sku in skus %}
      • {{ forloop.counter }}
      • {{ sku.name }}
      • {{ sku.unite }}
      • {{ sku.price }}元
      • {{ sku.count }}
      • {{ sku.amount }}元
      {% endfor %}

      总金额结算

      {{ total_count }}件商品,总金额{{ total_price }}元
      运费:{{ transit_price }}元
      实付款:{{ total_pay }}元
      {% csrf_token %} 提交订单
      {% endblock body %} {% block bottom %} {% endblock bottom %} {% block bottomfiles %} {% endblock bottomfiles %} ================================================ FILE: dailyfresh/templates/register.html ================================================ {% extends 'base.html' %} {% load staticfiles %} {% block title %}天天生鲜-注册{% endblock title %} {% block topfiles %} {% endblock topfiles %} {% block header_con %}{% endblock header_con %} {% block search_bar %}{% endblock search_bar %} {% block body %}
      足不出户 · 新鲜每一天

      用户注册

      登录
      {% csrf_token %}
      • 提示信息
      • 提示信息
      • 提示信息
      • 提示信息
      • 提示信息
      {{ errmsg }}
      {% endblock body %} ================================================ FILE: dailyfresh/templates/search/indexes/goods/goodssku_text.txt ================================================ # 指定根据表中的哪些字段建立索引数据 {{ object.name }} # 根据商品的名称建立索引 {{ object.desc }} # 根据商品的简介建立索引 {{ object.goods.detail }} # 根据商品的详情建立索引 ================================================ FILE: dailyfresh/templates/search/search.html ================================================ {% extends 'base_detail_list.html' %} {% block title %}天天生鲜-商品搜索结果列表{% endblock title %} {% block main_content %}
        {% for item in page %}
      • {{ item.object.name }}

        ¥{{ item.object.price }} {{ item.object.price}}/{{ item.object.unite }}
      • {% endfor %}
      {% if page.has_previous %} <上一页 {% endif %} {% for pindex in paginator.page_range %} {% if pindex == page.number %} {{ pindex }} {% else %} {{ pindex }} {% endif %} {% endfor %} {% if spage.has_next %} 下一页> {% endif %}
      {% endblock main_content %} ================================================ FILE: dailyfresh/templates/search/search1.html ================================================ Title 搜索的关键字:{{ query }}
      当前页的Page对象:{{ page }}
        {% for item in page %}
      • {{ item.object }}
      • {% endfor %}
      分页paginator对象:{{ paginator }}
      ================================================ FILE: dailyfresh/templates/static_base.html ================================================ {# 首页 注册 登录 #} {% load staticfiles %} {# 网页标题内容块 #} {% block title %}{% endblock title %} {# 网页顶部引入文件块 #} {% block topfiles %}{% endblock topfiles %} {# 网页顶部欢迎信息块 #} {% block header_con %}
      欢迎来到天天生鲜!
      {% endblock header_con %} {# 网页顶部搜索框块 #} {% block search_bar %} {% endblock search_bar %} {# 网站主体内容块 #} {% block body %}{% endblock body %} {# 网页底部html元素块 #} {% block bottom %}{% endblock bottom %} {# 网页底部引入文件块 #} {% block bottomfiles %}{% endblock bottomfiles %} ================================================ FILE: dailyfresh/templates/static_index.html ================================================ {% extends 'static_base.html' %} {% load staticfiles %} {% block title %}天天生鲜-首页{% endblock title %} {% block topfiles %} {% endblock topfiles %} {% block body %}
        {% for banner in goods_banners %}
      • 幻灯片
      • {% endfor %}
        {% for banner in promotion_banners %} {% endfor %}
        {% for type in types %}

        {{ type.name }}

        | {% for banner in type.title_banners %} {{ banner.sku.name }} {% endfor %}
        查看更多 >
        {% endfor %} {% endblock body %} ================================================ FILE: dailyfresh/templates/user_center_info.html ================================================ {% extends 'base_user_center.html' %} {% block right_content %}

        基本信息

        最近浏览

          {% for goods in goods_li %}
        • {{ goods.name }}

          ¥{{ goods.price }} {{ goods.price }}/{{ goods.unite }}
        • {% empty %} 无历史浏览记录 {% endfor %}
        {% endblock right_content %} ================================================ FILE: dailyfresh/templates/user_center_order.html ================================================ {% extends 'base_user_center.html' %} {% load staticfiles %} {% block right_content %}
        {% csrf_token %}

        全部订单

        {% for order in order_page %}
        • {{ order.create_time }}
        • 订单号:{{ order.order_id }}
        • {{ order.status_name }}
        {% for order_sku in order.order_skus %}
        • {{ order_sku.sku.name }}{{ order_sku.price }}元/{{ order_sku.sku.unite }}
        • {{ order_sku.count }}
        • {{ order_sku.amount }}元
        {% endfor %}
        {{ order.total_price|add:order.transit_price }}(含运费:{{ order.transit_price }})元 {{ order.status_name }} 去付款
        {% endfor %}
        {% if order_page.has_previous_page %} <上一页 {% endif %} {% for pindex in pages %} {% if pindex == order_page.number %} {{ pindex }} {% else %} {{ pindex }} {% endif %} {% endfor %} {% if order_page.has_next_page %} 下一页> {% endif %}
        {% endblock right_content %} {% block bottomfiles %} {% endblock bottomfiles %} ================================================ FILE: dailyfresh/templates/user_center_site.html ================================================ {% extends 'base_user_center.html' %} {% load staticfiles %} {% block right_content %}

        收货地址

        当前地址:
        {% if address %}
        {% else %}
        无默认地址
        {% endif %}

        编辑地址

        {% csrf_token %}
        {% endblock right_content %} ================================================ FILE: dailyfresh/utils/__init__.py ================================================ ================================================ FILE: dailyfresh/utils/fdfs/__init__.py ================================================ ================================================ FILE: dailyfresh/utils/fdfs/client.conf ================================================ # connect timeout in seconds # default value is 30s connect_timeout=30 # network timeout in seconds # default value is 30s network_timeout=60 # the base path to store log files base_path=/home/hnz/Desktop # tracker_server can ocur more than once, and tracker_server format is # "host:port", host can be hostname or ip address tracker_server=192.168.31.89:22122 #standard log level as syslog, case insensitive, value list: ### emerg for emergency ### alert ### crit for critical ### error ### warn for warning ### notice ### info ### debug log_level=info # if use connection pool # default value is false # since V4.05 use_connection_pool = false # connections whose the idle time exceeds this time will be closed # unit: second # default value is 3600 # since V4.05 connection_pool_max_idle_time = 3600 # if load FastDFS parameters from tracker server # since V4.05 # default value is false load_fdfs_parameters_from_tracker=false # if use storage ID instead of IP address # same as tracker.conf # valid only when load_fdfs_parameters_from_tracker is false # default value is false # since V4.05 use_storage_id = false # specify storage ids filename, can use relative or absolute path # same as tracker.conf # valid only when load_fdfs_parameters_from_tracker is false # since V4.05 storage_ids_filename = storage_ids.conf #HTTP settings http.tracker_server_port=80 #use "#include" directive to include HTTP other settiongs ##include http.conf ================================================ FILE: dailyfresh/utils/fdfs/storage.py ================================================ from django.core.files.storage import Storage from django.conf import settings from fdfs_client.client import Fdfs_client class FDFSStorage(Storage): '''fast dfs文件存储类''' def __init__(self, client_conf=None, base_url=None): '''初始化''' if client_conf is None: client_conf = settings.FDFS_CLIENT_CONF self.client_conf = client_conf if base_url is None: base_url = settings.FDFS_URL self.base_url = base_url def _open(self, name, mode='rb'): '''打开文件时使用''' pass def _save(self, name, content): '''保存文件时使用''' # name:你选择上传文件的名字 test.jpg # content:包含你上传文件内容的File对象 # 创建一个Fdfs_client对象 client = Fdfs_client(self.client_conf) # 上传文件到fast dfs系统中 res = client.upload_by_buffer(content.read()) # dict # { # 'Group name': group_name, # 'Remote file_id': remote_file_id, # 'Status': 'Upload successed.', # 'Local file name': '', # 'Uploaded size': upload_size, # 'Storage IP': storage_ip # } if res.get('Status') != 'Upload successed.': # 上传失败 raise Exception('上传文件到fast dfs失败') # 获取返回的文件ID filename = res.get('Remote file_id') return filename # 1.jpg def exists(self, name): '''Django判断文件名是否可用''' return False def url(self, name): '''返回访问文件的url路径''' return self.base_url+name ================================================ FILE: dailyfresh/utils/mixin.py ================================================ from django.contrib.auth.decorators import login_required class LoginRequiredMixin(object): @classmethod def as_view(cls, **initkwargs): # 调用父类的as_view view = super(LoginRequiredMixin, cls).as_view(**initkwargs) return login_required(view) ================================================ FILE: dailyfresh/uwsgi.ini ================================================ [uwsgi] #使用nginx连接时使用 socket=127.0.0.1:8080 #直接做web服务器使用 python manage.py runserver ip:port #http=127.0.0.1:8080 #项目目录 chdir=/home/hnz/py/dailyfresh #项目中wsgi.py文件的目录,相对于项目目录 wsgi-file=dailyfresh/wsgi.py #指定启动的工作进程数 processes=4 #指定工作进程中的线程数 threads=2 master=True #保存启动之后主进程的pid pidfile=uwsgi.pid #设置uwsgi后台运行,uwsgi.log保存日志信息 daemonize=uwsgi.log #设置虚拟环境的路径 virtualenv=/home/hnz/.virtualenvs/pytest ================================================ FILE: dailyfresh/uwsgi.log ================================================ *** Starting uWSGI 2.0.15 (64bit) on [Sat Nov 25 16:07:56 2017] *** compiled with version: 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1) on 30 October 2017 06:31:19 os: Darwin-15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 nodename: smartli.local machine: x86_64 clock source: unix detected number of CPU cores: 8 current working directory: /Users/smart/Desktop/dj/bj18/dailyfresh writing pidfile to uwsgi.pid detected binary path: /Users/smart/.virtualenvs/dailyfresh/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! chdir() to /Users/smart/Desktop/dj/bj18/dailyfresh your processes number limit is 709 your memory page size is 4096 bytes detected max file descriptor number: 10240 lock engine: OSX spinlocks thunder lock: disabled (you can enable it with --thunder-lock) uWSGI http bound on 127.0.0.1:8080 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:55958 (port auto-assigned) fd 3 Python version: 3.5.2 (default, Oct 21 2017, 11:45:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Set PythonHome to /Users/smart/.virtualenvs/dailyfresh Python main interpreter initialized at 0x7fc848d02940 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 415200 bytes (405 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x7fc848d02940 pid: 7154 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 7154) spawned uWSGI worker 1 (pid: 7155, cores: 2) spawned uWSGI worker 2 (pid: 7156, cores: 2) spawned uWSGI worker 3 (pid: 7157, cores: 2) spawned uWSGI worker 4 (pid: 7158, cores: 2) spawned uWSGI http 1 (pid: 7159) 设置缓存 [pid: 7156|app: 0|req: 1/1] 127.0.0.1 () {38 vars in 749 bytes} [Sat Nov 25 16:08:59 2017] GET /index => generated 13323 bytes in 463 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 7156|app: 0|req: 2/2] 127.0.0.1 () {38 vars in 717 bytes} [Sat Nov 25 16:09:00 2017] GET /static/js/jquery-ui.min.js => generated 100 bytes in 2 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 0) [pid: 7155|app: 0|req: 1/3] 127.0.0.1 () {38 vars in 718 bytes} [Sat Nov 25 16:09:00 2017] GET /static/css/main.css => generated 93 bytes in 317 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 1) [pid: 7157|app: 0|req: 1/4] 127.0.0.1 () {38 vars in 720 bytes} [Sat Nov 25 16:09:00 2017] GET /static/css/reset.css => generated 94 bytes in 319 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) [pid: 7158|app: 0|req: 2/5] 127.0.0.1 () {38 vars in 701 bytes} [Sat Nov 25 16:09:00 2017] GET /static/js/slide.js => generated 92 bytes in 319 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 0) [pid: 7158|app: 0|req: 2/6] 127.0.0.1 () {38 vars in 725 bytes} [Sat Nov 25 16:09:00 2017] GET /static/js/jquery-1.12.4.min.js => generated 104 bytes in 319 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 1) [pid: 7156|app: 0|req: 4/7] 127.0.0.1 () {38 vars in 717 bytes} [Sat Nov 25 16:09:00 2017] GET /static/js/jquery-ui.min.js => generated 100 bytes in 1 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 0) [pid: 7156|app: 0|req: 4/8] 127.0.0.1 () {38 vars in 745 bytes} [Sat Nov 25 16:09:00 2017] GET /static/images/logo.png => generated 96 bytes in 3 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) [pid: 7158|app: 0|req: 3/9] 127.0.0.1 () {38 vars in 701 bytes} [Sat Nov 25 16:09:00 2017] GET /static/js/slide.js => generated 92 bytes in 1 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 0) SIGINT/SIGQUIT received...killing workers... gateway "uWSGI http 1" has been buried (pid: 7159) worker 4 buried after 1 seconds worker 3 buried after 1 seconds worker 2 buried after 1 seconds worker 1 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.15 (64bit) on [Sat Nov 25 16:25:54 2017] *** compiled with version: 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1) on 30 October 2017 06:31:19 os: Darwin-15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 nodename: smartli.local machine: x86_64 clock source: unix detected number of CPU cores: 8 current working directory: /Users/smart/Desktop/dj/bj18/dailyfresh writing pidfile to uwsgi.pid detected binary path: /Users/smart/.virtualenvs/dailyfresh/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! chdir() to /Users/smart/Desktop/dj/bj18/dailyfresh your processes number limit is 709 your memory page size is 4096 bytes detected max file descriptor number: 10240 lock engine: OSX spinlocks thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Oct 21 2017, 11:45:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Set PythonHome to /Users/smart/.virtualenvs/dailyfresh Python main interpreter initialized at 0x7fb9d8c0a070 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 415200 bytes (405 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7fb9d8c0a070 pid: 7453 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 7453) spawned uWSGI worker 1 (pid: 7454, cores: 2) spawned uWSGI worker 2 (pid: 7455, cores: 2) spawned uWSGI worker 3 (pid: 7456, cores: 2) spawned uWSGI worker 4 (pid: 7457, cores: 2) [pid: 7456|app: 0|req: 1/1] 127.0.0.1 () {40 vars in 775 bytes} [Sat Nov 25 16:26:44 2017] GET /index => generated 13323 bytes in 436 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 7456|app: 0|req: 2/2] 127.0.0.1 () {44 vars in 831 bytes} [Sat Nov 25 16:26:45 2017] GET /static/js/jquery-ui.min.js => generated 100 bytes in 2 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 0) [pid: 7454|app: 0|req: 1/4] 127.0.0.1 () {44 vars in 832 bytes} [Sat Nov 25 16:26:45 2017] GET /static/css/reset.css => generated 94 bytes in 312 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) [pid: 7455|app: 0|req: 1/4] 127.0.0.1 () {44 vars in 839 bytes} [Sat Nov 25 16:26:45 2017] GET /static/js/jquery-1.12.4.min.js => generated 104 bytes in 312 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 1) [pid: 7457|app: 0|req: 2/5] 127.0.0.1 () {44 vars in 831 bytes} [Sat Nov 25 16:26:45 2017] GET /static/css/main.css => generated 93 bytes in 314 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) [pid: 7457|app: 0|req: 2/6] 127.0.0.1 () {44 vars in 813 bytes} [Sat Nov 25 16:26:45 2017] GET /static/js/slide.js => generated 92 bytes in 314 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) [pid: 7457|app: 0|req: 4/7] 127.0.0.1 () {40 vars in 738 bytes} [Sat Nov 25 16:26:45 2017] GET /static/js/jquery-ui.min.js => generated 100 bytes in 1 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 1) [pid: 7457|app: 0|req: 4/8] 127.0.0.1 () {44 vars in 858 bytes} [Sat Nov 25 16:26:45 2017] GET /static/images/logo.png => generated 96 bytes in 0 msecs (HTTP/1.1 404) 2 headers in 80 bytes (2 switches on core 0) [pid: 7457|app: 0|req: 5/9] 127.0.0.1 () {40 vars in 722 bytes} [Sat Nov 25 16:26:45 2017] GET /static/js/slide.js => generated 92 bytes in 1 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) [pid: 7457|app: 0|req: 6/10] 127.0.0.1 () {42 vars in 806 bytes} [Sat Nov 25 16:49:14 2017] GET /index => generated 13323 bytes in 139 msecs (HTTP/1.1 200) 3 headers in 102 bytes (2 switches on core 0) [pid: 7457|app: 0|req: 7/11] 127.0.0.1 () {40 vars in 775 bytes} [Sat Nov 25 17:05:07 2017] GET /index => generated 13323 bytes in 84 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) [pid: 7454|app: 0|req: 2/12] 127.0.0.1 () {42 vars in 817 bytes} [Sat Nov 25 17:18:53 2017] GET /goods/6 => generated 9329 bytes in 114 msecs (HTTP/1.1 200) 4 headers in 224 bytes (2 switches on core 1) [pid: 7457|app: 0|req: 8/13] 127.0.0.1 () {42 vars in 819 bytes} [Sat Nov 25 17:19:10 2017] GET /goods/9 => generated 9330 bytes in 22 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) [pid: 7455|app: 0|req: 2/14] 127.0.0.1 () {42 vars in 815 bytes} [Sat Nov 25 18:27:39 2017] GET /cart/ => generated 10865 bytes in 33 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) [pid: 7454|app: 0|req: 3/15] 127.0.0.1 () {42 vars in 815 bytes} [Sat Nov 25 18:27:46 2017] GET /cart/ => generated 11558 bytes in 15 msecs (HTTP/1.1 200) 4 headers in 224 bytes (2 switches on core 0) *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 19:30:12 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uWSGI http bound on 127.0.0.1:8080 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:38167 (port auto-assigned) fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x26c8770 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 4 seconds on interpreter 0x26c8770 pid: 2306 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 2306) spawned uWSGI worker 1 (pid: 2308, cores: 2) spawned uWSGI worker 2 (pid: 2309, cores: 2) spawned uWSGI worker 3 (pid: 2311, cores: 2) spawned uWSGI worker 4 (pid: 2313, cores: 2) spawned uWSGI http 1 (pid: 2314) [pid: 2311|app: 0|req: 1/1] 127.0.0.1 () {38 vars in 721 bytes} [Sun May 26 19:31:19 2019] GET /index => generated 27 bytes in 9569 msecs (HTTP/1.1 500) 2 headers in 92 bytes (1 switches on core 0) [pid: 2311|app: 0|req: 2/2] 127.0.0.1 () {36 vars in 649 bytes} [Sun May 26 19:31:29 2019] GET /favicon.ico => generated 85 bytes in 4 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) [pid: 2309|app: 0|req: 1/3] 127.0.0.1 () {38 vars in 709 bytes} [Sun May 26 19:32:07 2019] GET / => generated 74 bytes in 484 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) [pid: 2313|app: 0|req: 1/4] 127.0.0.1 () {38 vars in 710 bytes} [Sun May 26 19:32:24 2019] GET / => generated 74 bytes in 638 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) [pid: 2311|app: 0|req: 3/5] 127.0.0.1 () {38 vars in 720 bytes} [Sun May 26 19:32:30 2019] GET /index => generated 27 bytes in 4 msecs (HTTP/1.1 500) 2 headers in 92 bytes (1 switches on core 0) [pid: 2309|app: 0|req: 2/6] 127.0.0.1 () {38 vars in 720 bytes} [Sun May 26 19:32:34 2019] GET /admin => generated 0 bytes in 2 msecs (HTTP/1.1 301) 3 headers in 143 bytes (1 switches on core 1) [pid: 2313|app: 0|req: 2/7] 127.0.0.1 () {38 vars in 722 bytes} [Sun May 26 19:32:34 2019] GET /admin/ => generated 27 bytes in 253 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) [pid: 2311|app: 0|req: 4/8] 127.0.0.1 () {38 vars in 721 bytes} [Sun May 26 19:37:09 2019] GET /index => generated 27 bytes in 21 msecs (HTTP/1.1 500) 2 headers in 92 bytes (1 switches on core 1) SIGINT/SIGQUIT received...killing workers... gateway "uWSGI http 1" has been buried (pid: 2314) worker 1 buried after 2 seconds worker 2 buried after 2 seconds worker 3 buried after 2 seconds worker 4 buried after 2 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 19:42:24 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uWSGI http bound on 127.0.0.1:8080 fd 4 uwsgi socket 0 bound to TCP address 127.0.0.1:42187 (port auto-assigned) fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x1c0e770 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 5 seconds on interpreter 0x1c0e770 pid: 2773 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 2773) spawned uWSGI worker 1 (pid: 2778, cores: 2) spawned uWSGI worker 2 (pid: 2780, cores: 2) spawned uWSGI worker 3 (pid: 2782, cores: 2) spawned uWSGI worker 4 (pid: 2783, cores: 2) spawned uWSGI http 1 (pid: 2785) [pid: 2782|app: 0|req: 1/1] 127.0.0.1 () {40 vars in 752 bytes} [Sun May 26 19:42:42 2019] GET /index => generated 27 bytes in 2885 msecs (HTTP/1.1 500) 2 headers in 92 bytes (1 switches on core 0) SIGINT/SIGQUIT received...killing workers... gateway "uWSGI http 1" has been buried (pid: 2785) worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 20:07:52 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x11e0680 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x11e0680 pid: 3109 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 3109) spawned uWSGI worker 1 (pid: 3111, cores: 2) spawned uWSGI worker 2 (pid: 3112, cores: 2) spawned uWSGI worker 3 (pid: 3114, cores: 2) spawned uWSGI worker 4 (pid: 3117, cores: 2) [pid: 3111|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 763 bytes} [Sun May 26 20:08:11 2019] GET / => generated 74 bytes in 3515 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) 设置缓存 [pid: 3111|app: 0|req: 2/2] 127.0.0.1 () {40 vars in 742 bytes} [Sun May 26 20:08:17 2019] GET /index => generated 27 bytes in 5256 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) [pid: 3117|app: 0|req: 1/3] 127.0.0.1 () {40 vars in 742 bytes} [Sun May 26 20:09:43 2019] GET /index => generated 27 bytes in 711 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip invalid request block size: 21573 (max 4096)...skip [pid: 3117|app: 0|req: 2/4] 127.0.0.1 () {40 vars in 742 bytes} [Sun May 26 20:10:01 2019] GET /index => generated 27 bytes in 128 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) [pid: 3117|app: 0|req: 3/5] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 20:15:28 2019] GET /index => generated 27 bytes in 154 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) [pid: 3117|app: 0|req: 4/6] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 20:15:29 2019] GET /index => generated 27 bytes in 165 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 20:16:37 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x15ef680 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x15ef680 pid: 3261 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 3261) spawned uWSGI worker 1 (pid: 3267, cores: 2) spawned uWSGI worker 2 (pid: 3269, cores: 2) spawned uWSGI worker 3 (pid: 3271, cores: 2) spawned uWSGI worker 4 (pid: 3273, cores: 2) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) Traceback (most recent call last): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 817, in _resolve_lookup current = current[bit] TypeError: 'ImageFieldFile' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) File "/home/hnz/py/dailyfresh/apps/goods/views.py", line 71, in get return render(request, 'index.html', context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/shortcuts.py", line 67, in render template_name, context, request=request, using=using) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/loader.py", line 99, in render_to_string return template.render(context, request) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/backends/django.py", line 74, in render return self.template.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 209, in render return self._render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 201, in _render return self.nodelist.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 903, in render bit = self.render_node(node, context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 79, in render_node return node.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/loader_tags.py", line 135, in render return compiled_parent._render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 201, in _render return self.nodelist.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 903, in render bit = self.render_node(node, context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 79, in render_node return node.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/loader_tags.py", line 65, in render result = block.nodelist.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 903, in render bit = self.render_node(node, context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 79, in render_node return node.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/defaulttags.py", line 217, in render nodelist.append(node.render(context)) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 89, in render output = self.filter_expression.resolve(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 647, in resolve obj = self.var.resolve(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 787, in resolve value = self._resolve_lookup(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 825, in _resolve_lookup current = getattr(current, bit) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/db/models/fields/files.py", line 69, in _get_url return self.storage.url(self.name) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/functional.py", line 226, in inner self._setup() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 334, in _setup self._wrapped = get_storage_class()() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 329, in get_storage_class return import_string(import_path or settings.DEFAULT_FILE_STORAGE) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/module_loading.py", line 26, in import_string module = import_module(module_path) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "./utils/fdfs/storage.py", line 3, in from fdfs_client.client import Fdfs_client File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/client.py", line 11, in from fdfs_client.tracker_client import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/tracker_client.py", line 17, in from fdfs_client.utils import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/utils.py", line 8, in from mutagen._compat import StringIO ImportError: No module named 'mutagen' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/base.py", line 218, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/base.py", line 261, in handle_uncaught_exception return debug.technical_500_response(request, *exc_info) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 97, in technical_500_response html = reporter.get_traceback_html() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 383, in get_traceback_html c = Context(self.get_traceback_data(), use_l10n=False) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 328, in get_traceback_data frames = self.get_traceback_frames() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 501, in get_traceback_frames 'vars': self.filter.get_traceback_frame_variables(self.request, tb.tb_frame), File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 234, in get_traceback_frame_variables cleansed[name] = self.cleanse_special_types(request, value) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 189, in cleanse_special_types if isinstance(value, HttpRequest): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/functional.py", line 226, in inner self._setup() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 334, in _setup self._wrapped = get_storage_class()() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 329, in get_storage_class return import_string(import_path or settings.DEFAULT_FILE_STORAGE) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/module_loading.py", line 26, in import_string module = import_module(module_path) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "./utils/fdfs/storage.py", line 3, in from fdfs_client.client import Fdfs_client File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/client.py", line 11, in from fdfs_client.tracker_client import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/tracker_client.py", line 17, in from fdfs_client.utils import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/utils.py", line 8, in from mutagen._compat import StringIO ImportError: No module named 'mutagen' [pid: 3267|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 20:16:44 2019] GET /index => generated 0 bytes in 1273 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 20:23:31 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x22c7680 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x22c7680 pid: 3537 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 3537) spawned uWSGI worker 1 (pid: 3539, cores: 2) spawned uWSGI worker 2 (pid: 3541, cores: 2) spawned uWSGI worker 3 (pid: 3543, cores: 2) spawned uWSGI worker 4 (pid: 3545, cores: 2) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) Traceback (most recent call last): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 817, in _resolve_lookup current = current[bit] TypeError: 'ImageFieldFile' object is not subscriptable During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) File "/home/hnz/py/dailyfresh/apps/goods/views.py", line 71, in get return render(request, 'index.html', context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/shortcuts.py", line 67, in render template_name, context, request=request, using=using) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/loader.py", line 99, in render_to_string return template.render(context, request) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/backends/django.py", line 74, in render return self.template.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 209, in render return self._render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 201, in _render return self.nodelist.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 903, in render bit = self.render_node(node, context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 79, in render_node return node.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/loader_tags.py", line 135, in render return compiled_parent._render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 201, in _render return self.nodelist.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 903, in render bit = self.render_node(node, context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 79, in render_node return node.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/loader_tags.py", line 65, in render result = block.nodelist.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 903, in render bit = self.render_node(node, context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 79, in render_node return node.render(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/defaulttags.py", line 217, in render nodelist.append(node.render(context)) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/debug.py", line 89, in render output = self.filter_expression.resolve(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 647, in resolve obj = self.var.resolve(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 787, in resolve value = self._resolve_lookup(context) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/template/base.py", line 825, in _resolve_lookup current = getattr(current, bit) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/db/models/fields/files.py", line 69, in _get_url return self.storage.url(self.name) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/functional.py", line 226, in inner self._setup() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 334, in _setup self._wrapped = get_storage_class()() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 329, in get_storage_class return import_string(import_path or settings.DEFAULT_FILE_STORAGE) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/module_loading.py", line 26, in import_string module = import_module(module_path) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "./utils/fdfs/storage.py", line 3, in from fdfs_client.client import Fdfs_client File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/client.py", line 11, in from fdfs_client.tracker_client import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/tracker_client.py", line 17, in from fdfs_client.utils import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/utils.py", line 10, in from requests.compat import basestring ImportError: No module named 'requests' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/base.py", line 218, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/handlers/base.py", line 261, in handle_uncaught_exception return debug.technical_500_response(request, *exc_info) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 97, in technical_500_response html = reporter.get_traceback_html() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 383, in get_traceback_html c = Context(self.get_traceback_data(), use_l10n=False) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 328, in get_traceback_data frames = self.get_traceback_frames() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 501, in get_traceback_frames 'vars': self.filter.get_traceback_frame_variables(self.request, tb.tb_frame), File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 234, in get_traceback_frame_variables cleansed[name] = self.cleanse_special_types(request, value) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/views/debug.py", line 189, in cleanse_special_types if isinstance(value, HttpRequest): File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/functional.py", line 226, in inner self._setup() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 334, in _setup self._wrapped = get_storage_class()() File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/core/files/storage.py", line 329, in get_storage_class return import_string(import_path or settings.DEFAULT_FILE_STORAGE) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django/utils/module_loading.py", line 26, in import_string module = import_module(module_path) File "/home/hnz/.virtualenvs/pytest/lib/python3.5/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 986, in _gcd_import File "", line 969, in _find_and_load File "", line 958, in _find_and_load_unlocked File "", line 673, in _load_unlocked File "", line 665, in exec_module File "", line 222, in _call_with_frames_removed File "./utils/fdfs/storage.py", line 3, in from fdfs_client.client import Fdfs_client File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/client.py", line 11, in from fdfs_client.tracker_client import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/tracker_client.py", line 17, in from fdfs_client.utils import * File "/home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/fdfs_client/utils.py", line 10, in from requests.compat import basestring ImportError: No module named 'requests' [pid: 3541|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 20:23:43 2019] GET /index => generated 0 bytes in 1202 msecs (HTTP/1.1 500) 0 headers in 0 bytes (0 switches on core 0) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 20:25:37 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x152f680 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x152f680 pid: 3616 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 3616) spawned uWSGI worker 1 (pid: 3618, cores: 2) spawned uWSGI worker 2 (pid: 3619, cores: 2) spawned uWSGI worker 3 (pid: 3622, cores: 2) spawned uWSGI worker 4 (pid: 3624, cores: 2) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3624|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 20:25:41 2019] GET /index => generated 13143 bytes in 2423 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3624|app: 0|req: 2/2] 192.168.31.195 () {38 vars in 651 bytes} [Sun May 26 20:26:35 2019] GET / => generated 3014 bytes in 11 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) [pid: 3622|app: 0|req: 1/3] 192.168.31.195 () {38 vars in 629 bytes} [Sun May 26 20:26:37 2019] GET /favicon.ico => generated 3047 bytes in 462 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) [pid: 3624|app: 0|req: 3/4] 192.168.31.195 () {38 vars in 661 bytes} [Sun May 26 20:26:44 2019] GET /index => generated 13136 bytes in 374 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 20:27:25 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x2516680 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x2516680 pid: 3723 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 3723) spawned uWSGI worker 1 (pid: 3725, cores: 2) spawned uWSGI worker 2 (pid: 3727, cores: 2) spawned uWSGI worker 3 (pid: 3729, cores: 2) spawned uWSGI worker 4 (pid: 3731, cores: 2) [pid: 3731|app: 0|req: 1/1] 192.168.31.195 () {40 vars in 692 bytes} [Sun May 26 20:27:28 2019] GET /index => generated 13136 bytes in 852 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3729|app: 0|req: 1/2] 192.168.31.195 () {40 vars in 707 bytes} [Sun May 26 20:27:40 2019] GET /goods/1 => generated 9446 bytes in 1686 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 2/3] 192.168.31.195 () {40 vars in 718 bytes} [Sun May 26 20:27:57 2019] GET /index => generated 13136 bytes in 281 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 3/4] 192.168.31.195 () {42 vars in 749 bytes} [Sun May 26 21:07:43 2019] GET /index => generated 13136 bytes in 7623 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 4/5] 192.168.31.195 () {40 vars in 718 bytes} [Sun May 26 21:09:23 2019] GET /admin => generated 0 bytes in 1 msecs (HTTP/1.1 301) 3 headers in 142 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 5/6] 192.168.31.195 () {40 vars in 720 bytes} [Sun May 26 21:09:23 2019] GET /admin/ => generated 0 bytes in 199 msecs (HTTP/1.1 302) 7 headers in 275 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 6/7] 192.168.31.195 () {40 vars in 757 bytes} [Sun May 26 21:09:23 2019] GET /admin/login/?next=/admin/ => generated 1917 bytes in 388 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 7/8] 192.168.31.195 () {50 vars in 1000 bytes} [Sun May 26 21:09:30 2019] POST /admin/login/?next=/admin/ => generated 0 bytes in 661 msecs (HTTP/1.1 302) 9 headers in 509 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 8/9] 192.168.31.195 () {44 vars in 857 bytes} [Sun May 26 21:09:31 2019] GET /admin/ => generated 4637 bytes in 471 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 9/10] 192.168.31.195 () {42 vars in 861 bytes} [Sun May 26 21:09:42 2019] GET /admin/goods/indexpromotionbanner/ => generated 4738 bytes in 303 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3725|app: 0|req: 1/11] 192.168.31.195 () {40 vars in 731 bytes} [Sun May 26 21:09:42 2019] GET /admin/jsi18n/ => generated 6776 bytes in 1079 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3729|app: 0|req: 2/12] 192.168.31.195 () {42 vars in 892 bytes} [Sun May 26 21:09:45 2019] GET /admin/goods/indexpromotionbanner/2/ => generated 6390 bytes in 303 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3727|app: 0|req: 1/13] 192.168.31.195 () {40 vars in 733 bytes} [Sun May 26 21:09:45 2019] GET /admin/jsi18n/ => generated 6776 bytes in 798 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3727|app: 0|req: 2/14] 192.168.31.195 () {44 vars in 945 bytes} [Sun May 26 21:10:20 2019] GET /admin/goods/indexpromotionbanner/ => generated 4738 bytes in 7044 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 10/15] 192.168.31.195 () {40 vars in 731 bytes} [Sun May 26 21:10:27 2019] GET /admin/jsi18n/ => generated 6776 bytes in 5534 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3725|app: 0|req: 2/16] 192.168.31.195 () {40 vars in 752 bytes} [Sun May 26 21:10:54 2019] GET / => generated 74 bytes in 37 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) 设置缓存 [pid: 3731|app: 0|req: 11/17] 192.168.31.195 () {40 vars in 762 bytes} [Sun May 26 21:10:59 2019] GET /index => generated 13143 bytes in 522 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 12/18] 192.168.31.195 () {42 vars in 846 bytes} [Sun May 26 21:11:51 2019] GET /admin/goods/ => generated 3824 bytes in 63 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3729|app: 0|req: 3/19] 192.168.31.195 () {42 vars in 867 bytes} [Sun May 26 21:11:54 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13019 bytes in 161 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 13/20] 192.168.31.195 () {40 vars in 731 bytes} [Sun May 26 21:11:55 2019] GET /admin/jsi18n/ => generated 6776 bytes in 124 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 14/21] 192.168.31.195 () {44 vars in 901 bytes} [Sun May 26 21:11:57 2019] GET /admin/goods/ => generated 3824 bytes in 111 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3729|app: 0|req: 4/22] 192.168.31.195 () {42 vars in 859 bytes} [Sun May 26 21:11:58 2019] GET /admin/goods/indexgoodsbanner/ => generated 5194 bytes in 208 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3729|app: 0|req: 5/23] 192.168.31.195 () {40 vars in 727 bytes} [Sun May 26 21:11:58 2019] GET /admin/jsi18n/ => generated 6776 bytes in 33 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3725|app: 0|req: 3/24] 192.168.31.195 () {42 vars in 880 bytes} [Sun May 26 21:12:00 2019] GET /admin/goods/indexgoodsbanner/4/ => generated 7309 bytes in 295 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3725|app: 0|req: 4/25] 192.168.31.195 () {40 vars in 729 bytes} [Sun May 26 21:12:00 2019] GET /admin/jsi18n/ => generated 6776 bytes in 121 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) getting connection [pid: 3729|app: 0|req: 6/26] 192.168.31.195 () {50 vars in 1139 bytes} [Sun May 26 21:13:02 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 27 bytes in 8035 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) getting connection [pid: 3731|app: 0|req: 15/27] 192.168.31.195 () {50 vars in 1139 bytes} [Sun May 26 21:13:16 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 27 bytes in 11207 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) getting connection [pid: 3727|app: 0|req: 3/28] 192.168.31.195 () {50 vars in 1139 bytes} [Sun May 26 21:13:31 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 27 bytes in 318 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) getting connection [pid: 3729|app: 0|req: 7/29] 192.168.31.195 () {50 vars in 1139 bytes} [Sun May 26 21:13:51 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 27 bytes in 128 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) [pid: 3725|app: 0|req: 5/30] 127.0.0.1 () {40 vars in 742 bytes} [Sun May 26 21:15:04 2019] GET /index => generated 13143 bytes in 2257 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 16/31] 127.0.0.1 () {40 vars in 742 bytes} [Sun May 26 21:15:20 2019] GET /admin => generated 0 bytes in 2 msecs (HTTP/1.1 301) 3 headers in 138 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 17/32] 127.0.0.1 () {40 vars in 744 bytes} [Sun May 26 21:15:20 2019] GET /admin/ => generated 4637 bytes in 423 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 18/33] 127.0.0.1 () {42 vars in 829 bytes} [Sun May 26 21:15:23 2019] GET /admin/goods/indexgoodsbanner/ => generated 5194 bytes in 473 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3727|app: 0|req: 4/34] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 21:15:24 2019] GET /admin/jsi18n/ => generated 6776 bytes in 411 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 19/35] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 21:15:28 2019] GET /admin/goods/indexgoodsbanner/4/ => generated 7309 bytes in 655 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3727|app: 0|req: 5/36] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 21:15:28 2019] GET /admin/jsi18n/ => generated 6776 bytes in 97 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3731|app: 0|req: 20/37] 127.0.0.1 () {46 vars in 1085 bytes} [Sun May 26 21:19:15 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 27 bytes in 954 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) getting connection [pid: 3729|app: 0|req: 8/38] 127.0.0.1 () {48 vars in 1116 bytes} [Sun May 26 21:20:10 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 27 bytes in 242 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) getting connection [pid: 3725|app: 0|req: 6/39] 127.0.0.1 () {46 vars in 1085 bytes} [Sun May 26 21:31:29 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 27 bytes in 1650 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 21/40] 127.0.0.1 () {42 vars in 799 bytes} [Sun May 26 21:32:44 2019] GET /admin/ => generated 4637 bytes in 507 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 22/41] 127.0.0.1 () {44 vars in 884 bytes} [Sun May 26 21:32:50 2019] GET /admin/goods/indexgoodsbanner/ => generated 5194 bytes in 368 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 23/42] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 21:32:51 2019] GET /admin/jsi18n/ => generated 6776 bytes in 343 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3729|app: 0|req: 9/43] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 21:32:54 2019] GET /admin/goods/indexgoodsbanner/3/ => generated 7309 bytes in 416 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3729|app: 0|req: 10/44] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 21:32:54 2019] GET /admin/jsi18n/ => generated 6776 bytes in 81 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 24/45] 127.0.0.1 () {44 vars in 909 bytes} [Sun May 26 21:33:01 2019] GET /admin/goods/indexgoodsbanner/ => generated 5194 bytes in 152 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3731|app: 0|req: 25/46] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 21:33:01 2019] GET /admin/jsi18n/ => generated 6776 bytes in 39 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3725|app: 0|req: 7/47] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 21:33:03 2019] GET /admin/goods/indexgoodsbanner/1/ => generated 7309 bytes in 248 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3731|app: 0|req: 26/48] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 21:33:03 2019] GET /admin/jsi18n/ => generated 6776 bytes in 119 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) getting connection [pid: 3731|app: 0|req: 27/49] 127.0.0.1 () {46 vars in 1085 bytes} [Sun May 26 21:33:22 2019] POST /admin/goods/indexgoodsbanner/1/ => generated 27 bytes in 473 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 0) *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 22:21:06 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x1ed9710 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 8 seconds on interpreter 0x1ed9710 pid: 2615 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 2615) spawned uWSGI worker 1 (pid: 2624, cores: 2) spawned uWSGI worker 2 (pid: 2625, cores: 2) spawned uWSGI worker 3 (pid: 2627, cores: 2) spawned uWSGI worker 4 (pid: 2628, cores: 2) 设置缓存 [pid: 2624|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:21:15 2019] GET /index => generated 13143 bytes in 10970 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 2625|app: 0|req: 1/2] 127.0.0.1 () {42 vars in 799 bytes} [Sun May 26 22:21:48 2019] GET /admin/ => generated 4637 bytes in 7072 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 2627|app: 0|req: 1/3] 127.0.0.1 () {44 vars in 884 bytes} [Sun May 26 22:21:58 2019] GET /admin/goods/indexgoodsbanner/ => generated 5194 bytes in 827 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 2625|app: 0|req: 2/4] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:21:59 2019] GET /admin/jsi18n/ => generated 6776 bytes in 854 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 2624|app: 0|req: 2/5] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:22:04 2019] GET /admin/goods/indexgoodsbanner/1/ => generated 7309 bytes in 566 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 2628|app: 0|req: 1/6] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:22:04 2019] GET /admin/jsi18n/ => generated 6776 bytes in 1943 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. [-] Error: 101 connect to 192.168.31.89:22122. Network is unreachable. DAMN ! worker 4 (pid: 2628) died :( trying respawn ... Respawned uWSGI worker 4 (new pid: 2857) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 22:27:47 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x145f710 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x145f710 pid: 2939 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 2939) spawned uWSGI worker 1 (pid: 2944, cores: 2) spawned uWSGI worker 2 (pid: 2945, cores: 2) spawned uWSGI worker 3 (pid: 2948, cores: 2) spawned uWSGI worker 4 (pid: 2949, cores: 2) [pid: 2944|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:27:54 2019] GET /admin/goods/indexgoodsbanner/1/ => generated 7309 bytes in 3436 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 2948|app: 0|req: 1/2] 127.0.0.1 () {42 vars in 758 bytes} [Sun May 26 22:27:57 2019] GET /admin/jsi18n/ => generated 6776 bytes in 806 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 2945|app: 0|req: 1/3] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:27:57 2019] GET /index => generated 13143 bytes in 1190 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 2944|app: 0|req: 2/4] 127.0.0.1 () {46 vars in 1083 bytes} [Sun May 26 22:28:05 2019] POST /admin/goods/indexgoodsbanner/1/ => generated 27 bytes in 453 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) [pid: 2949|app: 0|req: 1/5] 127.0.0.1 () {42 vars in 799 bytes} [Sun May 26 22:28:23 2019] GET /admin/ => generated 4637 bytes in 873 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 2949|app: 0|req: 2/6] 127.0.0.1 () {44 vars in 884 bytes} [Sun May 26 22:28:26 2019] GET /admin/goods/indexgoodsbanner/ => generated 5194 bytes in 1530 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 2948|app: 0|req: 2/7] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:28:27 2019] GET /admin/jsi18n/ => generated 6776 bytes in 787 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 2944|app: 0|req: 3/8] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:28:31 2019] GET /admin/goods/indexgoodsbanner/2/ => generated 7309 bytes in 122 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 2949|app: 0|req: 3/9] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:28:31 2019] GET /admin/jsi18n/ => generated 6776 bytes in 39 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 2944|app: 0|req: 4/10] 127.0.0.1 () {44 vars in 909 bytes} [Sun May 26 22:28:33 2019] GET /admin/goods/indexgoodsbanner/ => generated 5194 bytes in 398 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 2945|app: 0|req: 2/11] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:28:33 2019] GET /admin/jsi18n/ => generated 6776 bytes in 106 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 2948|app: 0|req: 3/12] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:28:35 2019] GET /admin/goods/indexgoodsbanner/1/ => generated 7309 bytes in 351 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 2944|app: 0|req: 5/13] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:28:35 2019] GET /admin/jsi18n/ => generated 6776 bytes in 51 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 2949|app: 0|req: 4/14] 127.0.0.1 () {46 vars in 1087 bytes} [Sun May 26 22:28:52 2019] POST /admin/goods/indexgoodsbanner/1/ => generated 27 bytes in 342 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) [pid: 2949|app: 0|req: 5/15] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:30:14 2019] GET /index => generated 13143 bytes in 229 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 2949|app: 0|req: 6/16] 127.0.0.1 () {42 vars in 799 bytes} [Sun May 26 22:30:29 2019] GET /admin/ => generated 4637 bytes in 127 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 1) [pid: 2945|app: 0|req: 3/17] 127.0.0.1 () {42 vars in 837 bytes} [Sun May 26 22:30:48 2019] GET /admin/goods/indexpromotionbanner/ => generated 4738 bytes in 164 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 2949|app: 0|req: 7/18] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 22:30:48 2019] GET /admin/jsi18n/ => generated 6776 bytes in 198 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 2945|app: 0|req: 4/19] 127.0.0.1 () {42 vars in 868 bytes} [Sun May 26 22:30:50 2019] GET /admin/goods/indexpromotionbanner/1/ => generated 6390 bytes in 163 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 2949|app: 0|req: 8/20] 127.0.0.1 () {40 vars in 731 bytes} [Sun May 26 22:30:50 2019] GET /admin/jsi18n/ => generated 6776 bytes in 55 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 2944|app: 0|req: 6/21] 127.0.0.1 () {46 vars in 1097 bytes} [Sun May 26 22:31:00 2019] POST /admin/goods/indexpromotionbanner/1/ => generated 27 bytes in 112 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 22:35:27 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x1b49710 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 4 seconds on interpreter 0x1b49710 pid: 3201 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 3201) spawned uWSGI worker 1 (pid: 3203, cores: 2) spawned uWSGI worker 2 (pid: 3205, cores: 2) spawned uWSGI worker 3 (pid: 3207, cores: 2) spawned uWSGI worker 4 (pid: 3209, cores: 2) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3203|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:35:35 2019] GET /index => generated 13143 bytes in 1180 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3209|app: 0|req: 1/2] 127.0.0.1 () {42 vars in 799 bytes} [Sun May 26 22:35:46 2019] GET /admin/ => generated 4637 bytes in 556 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3203|app: 0|req: 2/3] 127.0.0.1 () {44 vars in 884 bytes} [Sun May 26 22:35:49 2019] GET /admin/goods/indexgoodsbanner/ => generated 5186 bytes in 283 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3205|app: 0|req: 1/4] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:35:50 2019] GET /admin/jsi18n/ => generated 6776 bytes in 530 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3209|app: 0|req: 2/5] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:35:52 2019] GET /admin/goods/indexgoodsbanner/1/ => generated 7301 bytes in 341 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3209|app: 0|req: 3/6] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:35:52 2019] GET /admin/jsi18n/ => generated 6776 bytes in 103 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3205|app: 0|req: 2/7] 127.0.0.1 () {46 vars in 1083 bytes} [Sun May 26 22:36:00 2019] POST /admin/goods/indexgoodsbanner/1/ => generated 191715 bytes in 529 msecs (HTTP/1.1 500) 3 headers in 106 bytes (1 switches on core 1) [pid: 3207|app: 0|req: 1/8] 127.0.0.1 () {42 vars in 799 bytes} [Sun May 26 22:50:58 2019] GET /admin/ => generated 4637 bytes in 4023 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Sun May 26 22:52:32 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0xa93710 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 6 seconds on interpreter 0xa93710 pid: 3885 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 3885) spawned uWSGI worker 1 (pid: 3889, cores: 2) spawned uWSGI worker 2 (pid: 3891, cores: 2) spawned uWSGI worker 3 (pid: 3893, cores: 2) spawned uWSGI worker 4 (pid: 3895, cores: 2) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3889|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:52:39 2019] GET /index => generated 13287 bytes in 1732 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 2/2] 127.0.0.1 () {44 vars in 830 bytes} [Sun May 26 22:52:47 2019] GET /admin/ => generated 4637 bytes in 162 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 1/3] 127.0.0.1 () {44 vars in 884 bytes} [Sun May 26 22:52:49 2019] GET /admin/goods/indexgoodsbanner/ => generated 5186 bytes in 951 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3891|app: 0|req: 1/4] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:52:50 2019] GET /admin/jsi18n/ => generated 6776 bytes in 679 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3891|app: 0|req: 2/5] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:52:52 2019] GET /admin/goods/indexgoodsbanner/1/ => generated 7305 bytes in 640 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 1/6] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:52:53 2019] GET /admin/jsi18n/ => generated 6776 bytes in 524 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3893|app: 0|req: 2/7] 127.0.0.1 () {46 vars in 1081 bytes} [Sun May 26 22:53:01 2019] POST /admin/goods/indexgoodsbanner/1/ => generated 0 bytes in 1957 msecs (HTTP/1.1 302) 8 headers in 511 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 2/8] 127.0.0.1 () {42 vars in 1059 bytes} [Sun May 26 22:53:03 2019] GET /admin/goods/indexgoodsbanner/ => generated 5348 bytes in 213 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 3/9] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:53:04 2019] GET /admin/jsi18n/ => generated 6776 bytes in 240 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) 设置缓存 /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3895|app: 0|req: 3/10] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:53:09 2019] GET /index => generated 13287 bytes in 1483 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 4/11] 127.0.0.1 () {44 vars in 911 bytes} [Sun May 26 22:53:14 2019] GET /admin/goods/indexgoodsbanner/2/ => generated 7305 bytes in 304 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 3/12] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:53:14 2019] GET /admin/jsi18n/ => generated 6776 bytes in 30 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3889|app: 0|req: 4/13] 127.0.0.1 () {46 vars in 1085 bytes} [Sun May 26 22:53:25 2019] POST /admin/goods/indexgoodsbanner/2/ => generated 0 bytes in 225 msecs (HTTP/1.1 302) 8 headers in 671 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 5/14] 127.0.0.1 () {42 vars in 1223 bytes} [Sun May 26 22:53:25 2019] GET /admin/goods/indexgoodsbanner/add/ => generated 7152 bytes in 227 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 4/15] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 22:53:26 2019] GET /admin/jsi18n/ => generated 6776 bytes in 53 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 6/16] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:53:29 2019] GET /admin/goods/indexgoodsbanner/ => generated 5186 bytes in 111 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 5/17] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:53:29 2019] GET /admin/jsi18n/ => generated 6776 bytes in 36 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 6/18] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:53:31 2019] GET /admin/goods/indexgoodsbanner/3/ => generated 7305 bytes in 447 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 5/19] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:53:31 2019] GET /admin/jsi18n/ => generated 6776 bytes in 43 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3895|app: 0|req: 7/20] 127.0.0.1 () {46 vars in 1081 bytes} [Sun May 26 22:53:38 2019] POST /admin/goods/indexgoodsbanner/3/ => generated 0 bytes in 193 msecs (HTTP/1.1 302) 8 headers in 511 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 8/21] 127.0.0.1 () {42 vars in 1059 bytes} [Sun May 26 22:53:38 2019] GET /admin/goods/indexgoodsbanner/ => generated 5348 bytes in 78 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 1) [pid: 3891|app: 0|req: 3/22] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:53:38 2019] GET /admin/jsi18n/ => generated 6776 bytes in 60 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 7/23] 127.0.0.1 () {42 vars in 856 bytes} [Sun May 26 22:53:40 2019] GET /admin/goods/indexgoodsbanner/4/ => generated 7305 bytes in 117 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 6/24] 127.0.0.1 () {40 vars in 727 bytes} [Sun May 26 22:53:40 2019] GET /admin/jsi18n/ => generated 6776 bytes in 42 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) getting connection [pid: 3893|app: 0|req: 7/25] 127.0.0.1 () {46 vars in 1085 bytes} [Sun May 26 22:53:46 2019] POST /admin/goods/indexgoodsbanner/4/ => generated 0 bytes in 923 msecs (HTTP/1.1 302) 8 headers in 511 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 9/26] 127.0.0.1 () {42 vars in 1059 bytes} [Sun May 26 22:53:47 2019] GET /admin/goods/indexgoodsbanner/ => generated 5348 bytes in 124 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 8/27] 127.0.0.1 () {40 vars in 725 bytes} [Sun May 26 22:53:47 2019] GET /admin/jsi18n/ => generated 6776 bytes in 85 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) 设置缓存 /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3895|app: 0|req: 10/28] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:53:48 2019] GET /index => generated 13287 bytes in 313 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 11/29] 127.0.0.1 () {42 vars in 818 bytes} [Sun May 26 22:53:58 2019] GET /admin/goods/ => generated 3824 bytes in 169 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 9/30] 127.0.0.1 () {44 vars in 898 bytes} [Sun May 26 22:54:00 2019] GET /admin/goods/indexpromotionbanner/ => generated 4730 bytes in 116 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 8/31] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 22:54:00 2019] GET /admin/jsi18n/ => generated 6776 bytes in 68 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 10/32] 127.0.0.1 () {42 vars in 868 bytes} [Sun May 26 22:54:02 2019] GET /admin/goods/indexpromotionbanner/1/ => generated 6386 bytes in 684 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3891|app: 0|req: 4/33] 127.0.0.1 () {40 vars in 731 bytes} [Sun May 26 22:54:03 2019] GET /admin/jsi18n/ => generated 6776 bytes in 67 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) getting connection [pid: 3891|app: 0|req: 5/34] 127.0.0.1 () {46 vars in 1097 bytes} [Sun May 26 22:55:01 2019] POST /admin/goods/indexpromotionbanner/1/ => generated 0 bytes in 212 msecs (HTTP/1.1 302) 8 headers in 519 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 12/35] 127.0.0.1 () {42 vars in 1075 bytes} [Sun May 26 22:55:01 2019] GET /admin/goods/indexpromotionbanner/ => generated 4896 bytes in 127 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 13/36] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 22:55:02 2019] GET /admin/jsi18n/ => generated 6776 bytes in 56 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 14/37] 127.0.0.1 () {42 vars in 868 bytes} [Sun May 26 22:55:03 2019] GET /admin/goods/indexpromotionbanner/2/ => generated 6386 bytes in 248 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 15/38] 127.0.0.1 () {40 vars in 731 bytes} [Sun May 26 22:55:03 2019] GET /admin/jsi18n/ => generated 6776 bytes in 90 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3891|app: 0|req: 6/39] 127.0.0.1 () {46 vars in 1093 bytes} [Sun May 26 22:55:08 2019] POST /admin/goods/indexpromotionbanner/2/ => generated 0 bytes in 78 msecs (HTTP/1.1 302) 8 headers in 519 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 16/40] 127.0.0.1 () {42 vars in 1075 bytes} [Sun May 26 22:55:09 2019] GET /admin/goods/indexpromotionbanner/ => generated 4896 bytes in 99 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 9/41] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 22:55:09 2019] GET /admin/jsi18n/ => generated 6776 bytes in 43 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) 设置缓存 /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3889|app: 0|req: 11/42] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:55:11 2019] GET /index => generated 13287 bytes in 291 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 17/43] 127.0.0.1 () {44 vars in 877 bytes} [Sun May 26 22:55:20 2019] GET /admin/goods/ => generated 3824 bytes in 106 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 10/44] 127.0.0.1 () {42 vars in 843 bytes} [Sun May 26 22:55:38 2019] GET /admin/goods/indexpromotionbanner/ => generated 4730 bytes in 130 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 11/45] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 22:55:39 2019] GET /admin/jsi18n/ => generated 6776 bytes in 38 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 12/46] 127.0.0.1 () {44 vars in 877 bytes} [Sun May 26 22:55:42 2019] GET /admin/goods/ => generated 3824 bytes in 32 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 12/47] 127.0.0.1 () {42 vars in 843 bytes} [Sun May 26 22:55:43 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13011 bytes in 132 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 13/48] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 22:55:43 2019] GET /admin/jsi18n/ => generated 6776 bytes in 71 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 18/49] 127.0.0.1 () {44 vars in 877 bytes} [Sun May 26 22:55:49 2019] GET /admin/goods/ => generated 3824 bytes in 132 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 1) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3891|app: 0|req: 7/50] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:59:22 2019] GET /index => generated 13287 bytes in 185 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3895|app: 0|req: 19/51] 127.0.0.1 () {42 vars in 784 bytes} [Sun May 26 22:59:36 2019] GET /goods/1 => generated 9465 bytes in 424 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 20/52] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 22:59:48 2019] GET /index => generated 13287 bytes in 197 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) [pid: 3891|app: 0|req: 8/53] 127.0.0.1 () {42 vars in 821 bytes} [Sun May 26 23:00:37 2019] GET /admin/goods/goodstype/ => generated 5502 bytes in 219 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 21/54] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:00:37 2019] GET /admin/jsi18n/ => generated 6776 bytes in 66 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 13/55] 127.0.0.1 () {42 vars in 835 bytes} [Sun May 26 23:00:46 2019] GET /admin/goods/goodstype/1/ => generated 5827 bytes in 100 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 14/56] 127.0.0.1 () {40 vars in 720 bytes} [Sun May 26 23:00:47 2019] GET /admin/jsi18n/ => generated 6776 bytes in 30 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) getting connection [pid: 3895|app: 0|req: 22/57] 127.0.0.1 () {46 vars in 1064 bytes} [Sun May 26 23:01:04 2019] POST /admin/goods/goodstype/1/ => generated 0 bytes in 189 msecs (HTTP/1.1 302) 8 headers in 495 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 23/58] 127.0.0.1 () {42 vars in 1029 bytes} [Sun May 26 23:01:05 2019] GET /admin/goods/goodstype/ => generated 5647 bytes in 101 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 24/59] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:01:05 2019] GET /admin/jsi18n/ => generated 6776 bytes in 38 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 15/60] 127.0.0.1 () {42 vars in 835 bytes} [Sun May 26 23:01:12 2019] GET /admin/goods/goodstype/2/ => generated 5829 bytes in 145 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 25/61] 127.0.0.1 () {40 vars in 720 bytes} [Sun May 26 23:01:12 2019] GET /admin/jsi18n/ => generated 6776 bytes in 50 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3891|app: 0|req: 9/62] 127.0.0.1 () {46 vars in 1062 bytes} [Sun May 26 23:01:17 2019] POST /admin/goods/goodstype/2/ => generated 0 bytes in 131 msecs (HTTP/1.1 302) 8 headers in 495 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 14/63] 127.0.0.1 () {42 vars in 1029 bytes} [Sun May 26 23:01:17 2019] GET /admin/goods/goodstype/ => generated 5647 bytes in 122 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 26/64] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:01:17 2019] GET /admin/jsi18n/ => generated 6776 bytes in 70 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 16/65] 127.0.0.1 () {42 vars in 835 bytes} [Sun May 26 23:01:19 2019] GET /admin/goods/goodstype/3/ => generated 5826 bytes in 120 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 15/66] 127.0.0.1 () {40 vars in 720 bytes} [Sun May 26 23:01:19 2019] GET /admin/jsi18n/ => generated 6776 bytes in 98 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3891|app: 0|req: 10/67] 127.0.0.1 () {46 vars in 1058 bytes} [Sun May 26 23:01:27 2019] POST /admin/goods/goodstype/3/ => generated 0 bytes in 97 msecs (HTTP/1.1 302) 8 headers in 495 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 16/68] 127.0.0.1 () {42 vars in 1029 bytes} [Sun May 26 23:01:27 2019] GET /admin/goods/goodstype/ => generated 5647 bytes in 98 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 27/69] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:01:27 2019] GET /admin/jsi18n/ => generated 6776 bytes in 32 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 17/70] 127.0.0.1 () {42 vars in 835 bytes} [Sun May 26 23:01:29 2019] GET /admin/goods/goodstype/4/ => generated 5825 bytes in 442 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 28/71] 127.0.0.1 () {40 vars in 720 bytes} [Sun May 26 23:01:29 2019] GET /admin/jsi18n/ => generated 6776 bytes in 46 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) getting connection [pid: 3895|app: 0|req: 29/72] 127.0.0.1 () {46 vars in 1060 bytes} [Sun May 26 23:01:34 2019] POST /admin/goods/goodstype/4/ => generated 0 bytes in 173 msecs (HTTP/1.1 302) 8 headers in 495 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 30/73] 127.0.0.1 () {42 vars in 1029 bytes} [Sun May 26 23:01:34 2019] GET /admin/goods/goodstype/ => generated 5647 bytes in 152 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 31/74] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:01:34 2019] GET /admin/jsi18n/ => generated 6776 bytes in 120 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 18/75] 127.0.0.1 () {42 vars in 835 bytes} [Sun May 26 23:01:37 2019] GET /admin/goods/goodstype/5/ => generated 5832 bytes in 145 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 17/76] 127.0.0.1 () {40 vars in 720 bytes} [Sun May 26 23:01:37 2019] GET /admin/jsi18n/ => generated 6776 bytes in 101 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) getting connection [pid: 3889|app: 0|req: 18/77] 127.0.0.1 () {46 vars in 1064 bytes} [Sun May 26 23:01:42 2019] POST /admin/goods/goodstype/5/ => generated 0 bytes in 116 msecs (HTTP/1.1 302) 8 headers in 495 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 19/78] 127.0.0.1 () {42 vars in 1029 bytes} [Sun May 26 23:01:42 2019] GET /admin/goods/goodstype/ => generated 5647 bytes in 93 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 0) [pid: 3891|app: 0|req: 11/79] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:01:42 2019] GET /admin/jsi18n/ => generated 6776 bytes in 44 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 20/80] 127.0.0.1 () {42 vars in 835 bytes} [Sun May 26 23:01:43 2019] GET /admin/goods/goodstype/6/ => generated 5825 bytes in 276 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 32/81] 127.0.0.1 () {40 vars in 720 bytes} [Sun May 26 23:01:44 2019] GET /admin/jsi18n/ => generated 6776 bytes in 49 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) getting connection [pid: 3893|app: 0|req: 21/82] 127.0.0.1 () {46 vars in 1064 bytes} [Sun May 26 23:01:49 2019] POST /admin/goods/goodstype/6/ => generated 0 bytes in 94 msecs (HTTP/1.1 302) 8 headers in 495 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 33/83] 127.0.0.1 () {42 vars in 1029 bytes} [Sun May 26 23:01:49 2019] GET /admin/goods/goodstype/ => generated 5647 bytes in 90 msecs (HTTP/1.1 200) 8 headers in 420 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 34/84] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:01:49 2019] GET /admin/jsi18n/ => generated 6776 bytes in 11 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) 设置缓存 /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3893|app: 0|req: 22/85] 127.0.0.1 () {42 vars in 773 bytes} [Sun May 26 23:01:52 2019] GET /index => generated 13287 bytes in 329 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 35/86] 127.0.0.1 () {44 vars in 866 bytes} [Sun May 26 23:02:55 2019] GET /admin/goods/ => generated 3824 bytes in 78 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 23/87] 127.0.0.1 () {44 vars in 898 bytes} [Sun May 26 23:03:10 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13011 bytes in 112 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 36/88] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:03:10 2019] GET /admin/jsi18n/ => generated 6776 bytes in 47 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 37/89] 127.0.0.1 () {42 vars in 868 bytes} [Sun May 26 23:03:13 2019] GET /admin/goods/indextypegoodsbanner/1/ => generated 8786 bytes in 155 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 24/90] 127.0.0.1 () {40 vars in 731 bytes} [Sun May 26 23:03:13 2019] GET /admin/jsi18n/ => generated 6776 bytes in 110 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3891|app: 0|req: 12/91] 127.0.0.1 () {44 vars in 921 bytes} [Sun May 26 23:03:21 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13011 bytes in 125 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 38/92] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:03:21 2019] GET /admin/jsi18n/ => generated 6776 bytes in 34 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3891|app: 0|req: 13/93] 127.0.0.1 () {42 vars in 870 bytes} [Sun May 26 23:03:22 2019] GET /admin/goods/indextypegoodsbanner/36/ => generated 8788 bytes in 165 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3891|app: 0|req: 14/94] 127.0.0.1 () {40 vars in 732 bytes} [Sun May 26 23:03:22 2019] GET /admin/jsi18n/ => generated 6776 bytes in 34 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 25/95] 127.0.0.1 () {44 vars in 922 bytes} [Sun May 26 23:03:26 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13011 bytes in 133 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 39/96] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:03:26 2019] GET /admin/jsi18n/ => generated 6776 bytes in 46 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 26/97] 127.0.0.1 () {44 vars in 923 bytes} [Sun May 26 23:03:28 2019] GET /admin/goods/indextypegoodsbanner/1/ => generated 8786 bytes in 187 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 40/98] 127.0.0.1 () {40 vars in 731 bytes} [Sun May 26 23:03:29 2019] GET /admin/jsi18n/ => generated 6776 bytes in 43 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 27/99] 127.0.0.1 () {44 vars in 921 bytes} [Sun May 26 23:03:40 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13011 bytes in 139 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 19/100] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:03:40 2019] GET /admin/jsi18n/ => generated 6776 bytes in 34 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3889|app: 0|req: 20/101] 127.0.0.1 () {44 vars in 877 bytes} [Sun May 26 23:03:43 2019] GET /admin/goods/ => generated 3824 bytes in 88 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 41/102] 127.0.0.1 () {44 vars in 898 bytes} [Sun May 26 23:03:48 2019] GET /admin/goods/indexpromotionbanner/ => generated 4730 bytes in 117 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 42/103] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:03:49 2019] GET /admin/jsi18n/ => generated 6776 bytes in 15 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3891|app: 0|req: 15/104] 127.0.0.1 () {42 vars in 868 bytes} [Sun May 26 23:03:50 2019] GET /admin/goods/indexpromotionbanner/1/ => generated 6386 bytes in 159 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3891|app: 0|req: 16/105] 127.0.0.1 () {40 vars in 731 bytes} [Sun May 26 23:03:50 2019] GET /admin/jsi18n/ => generated 6776 bytes in 41 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 21/106] 127.0.0.1 () {44 vars in 921 bytes} [Sun May 26 23:07:25 2019] GET /admin/goods/indexpromotionbanner/ => generated 4730 bytes in 128 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 28/107] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:07:25 2019] GET /admin/jsi18n/ => generated 6776 bytes in 131 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 43/108] 127.0.0.1 () {44 vars in 877 bytes} [Sun May 26 23:07:27 2019] GET /admin/goods/ => generated 3824 bytes in 138 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 44/109] 127.0.0.1 () {42 vars in 821 bytes} [Sun May 26 23:07:31 2019] GET /admin/goods/goodstype/ => generated 5502 bytes in 234 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 29/110] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:07:31 2019] GET /admin/jsi18n/ => generated 6776 bytes in 33 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3891|app: 0|req: 17/111] 127.0.0.1 () {42 vars in 835 bytes} [Sun May 26 23:07:33 2019] GET /admin/goods/goodstype/1/ => generated 5827 bytes in 249 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 45/112] 127.0.0.1 () {40 vars in 720 bytes} [Sun May 26 23:07:33 2019] GET /admin/jsi18n/ => generated 6776 bytes in 204 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 46/113] 127.0.0.1 () {44 vars in 888 bytes} [Sun May 26 23:07:36 2019] GET /admin/goods/goodstype/ => generated 5502 bytes in 202 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 30/114] 127.0.0.1 () {40 vars in 718 bytes} [Sun May 26 23:07:36 2019] GET /admin/jsi18n/ => generated 6776 bytes in 48 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3895|app: 0|req: 47/115] 127.0.0.1 () {44 vars in 866 bytes} [Sun May 26 23:07:37 2019] GET /admin/goods/ => generated 3824 bytes in 89 msecs (HTTP/1.1 200) 6 headers in 214 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 48/116] 127.0.0.1 () {44 vars in 898 bytes} [Sun May 26 23:07:39 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13011 bytes in 252 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3893|app: 0|req: 31/117] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:07:39 2019] GET /admin/jsi18n/ => generated 6776 bytes in 51 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3895|app: 0|req: 49/118] 127.0.0.1 () {44 vars in 923 bytes} [Sun May 26 23:07:41 2019] GET /admin/goods/indextypegoodsbanner/1/ => generated 8786 bytes in 80 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 0) [pid: 3891|app: 0|req: 18/119] 127.0.0.1 () {40 vars in 731 bytes} [Sun May 26 23:07:41 2019] GET /admin/jsi18n/ => generated 6776 bytes in 24 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 22/120] 127.0.0.1 () {44 vars in 921 bytes} [Sun May 26 23:07:50 2019] GET /admin/goods/indextypegoodsbanner/ => generated 13011 bytes in 215 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3891|app: 0|req: 19/121] 127.0.0.1 () {40 vars in 729 bytes} [Sun May 26 23:07:50 2019] GET /admin/jsi18n/ => generated 6776 bytes in 92 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) [pid: 3893|app: 0|req: 32/122] 127.0.0.1 () {42 vars in 870 bytes} [Sun May 26 23:07:51 2019] GET /admin/goods/indextypegoodsbanner/31/ => generated 8788 bytes in 428 msecs (HTTP/1.1 200) 7 headers in 336 bytes (1 switches on core 1) [pid: 3889|app: 0|req: 23/123] 127.0.0.1 () {40 vars in 732 bytes} [Sun May 26 23:07:52 2019] GET /admin/jsi18n/ => generated 6776 bytes in 33 msecs (HTTP/1.1 200) 3 headers in 93 bytes (1 switches on core 0) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 3891|app: 0|req: 20/124] 127.0.0.1 () {42 vars in 784 bytes} [Sun May 26 23:15:01 2019] GET /goods/5 => generated 9325 bytes in 119 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. *** Starting uWSGI 2.0.18 (64bit) on [Mon May 27 12:47:23 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8080 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x20f4680 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 7 seconds on interpreter 0x20f4680 pid: 2486 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 2486) spawned uWSGI worker 1 (pid: 2490, cores: 2) spawned uWSGI worker 2 (pid: 2491, cores: 2) spawned uWSGI worker 3 (pid: 2492, cores: 2) spawned uWSGI worker 4 (pid: 2494, cores: 2) [pid: 2491|app: 0|req: 1/1] 127.0.0.1 () {40 vars in 737 bytes} [Mon May 27 12:48:32 2019] GET / => generated 3010 bytes in 22514 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) [pid: 2490|app: 0|req: 1/2] 127.0.0.1 () {40 vars in 737 bytes} [Mon May 27 12:49:52 2019] GET / => generated 3010 bytes in 18251 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2491|app: 0|req: 2/3] 127.0.0.1 () {42 vars in 791 bytes} [Mon May 27 12:50:54 2019] GET /goods/13 => generated 9324 bytes in 2496 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) [pid: 2494|app: 0|req: 1/4] 127.0.0.1 () {42 vars in 806 bytes} [Mon May 27 12:51:16 2019] GET /user/address => generated 3529 bytes in 11120 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) [pid: 2491|app: 0|req: 3/5] 127.0.0.1 () {42 vars in 805 bytes} [Mon May 27 12:51:56 2019] GET /user/index.html => generated 4215 bytes in 11 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) [pid: 2491|app: 0|req: 4/6] 127.0.0.1 () {42 vars in 805 bytes} [Mon May 27 12:51:57 2019] GET /cart/index.html => generated 3639 bytes in 9 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 1) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2492|app: 0|req: 1/7] 127.0.0.1 () {42 vars in 794 bytes} [Mon May 27 12:52:06 2019] GET /goods/13 => generated 9324 bytes in 2119 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 0) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2492|app: 0|req: 2/8] 127.0.0.1 () {40 vars in 747 bytes} [Mon May 27 12:52:38 2019] GET /index => generated 13287 bytes in 252 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2491|app: 0|req: 5/9] 127.0.0.1 () {46 vars in 882 bytes} [Mon May 27 12:52:46 2019] POST /cart/add => generated 67 bytes in 193 msecs (HTTP/1.1 200) 3 headers in 94 bytes (1 switches on core 0) [pid: 2492|app: 0|req: 3/10] 127.0.0.1 () {46 vars in 882 bytes} [Mon May 27 12:52:52 2019] POST /cart/add => generated 67 bytes in 56 msecs (HTTP/1.1 200) 3 headers in 94 bytes (1 switches on core 0) [pid: 2492|app: 0|req: 4/11] 127.0.0.1 () {46 vars in 912 bytes} [Mon May 27 12:53:12 2019] POST /order/place => generated 5833 bytes in 130 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) [pid: 2494|app: 0|req: 2/12] 127.0.0.1 () {46 vars in 894 bytes} [Mon May 27 12:53:23 2019] POST /order/commit => generated 54 bytes in 99 msecs (HTTP/1.1 200) 3 headers in 94 bytes (1 switches on core 0) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. ================================================ FILE: dailyfresh/uwsgi.pid ================================================ 2486 ================================================ FILE: dailyfresh/uwsgi2.ini ================================================ [uwsgi] #使用nginx连接时使用 socket=127.0.0.1:8081 #直接做web服务器使用 python manage.py runserver ip:port #http=127.0.0.1:8080 #项目目录 chdir=/home/hnz/py/dailyfresh #项目中wsgi.py文件的目录,相对于项目目录 wsgi-file=dailyfresh/wsgi.py #指定启动的工作进程数 processes=4 #指定工作进程中的线程数 threads=2 master=True #保存启动之后主进程的pid pidfile=uwsgi2.pid #设置uwsgi后台运行,uwsgi.log保存日志信息 daemonize=uwsgi2.log #设置虚拟环境的路径 virtualenv=/home/hnz/.virtualenvs/pytest ================================================ FILE: dailyfresh/uwsgi2.log ================================================ *** Starting uWSGI 2.0.15 (64bit) on [Sat Nov 25 17:14:32 2017] *** compiled with version: 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1) on 30 October 2017 06:31:19 os: Darwin-15.6.0 Darwin Kernel Version 15.6.0: Mon Jan 9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 nodename: smartli.local machine: x86_64 clock source: unix detected number of CPU cores: 8 current working directory: /Users/smart/Desktop/dj/bj18/dailyfresh writing pidfile to uwsgi2.pid detected binary path: /Users/smart/.virtualenvs/dailyfresh/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! chdir() to /Users/smart/Desktop/dj/bj18/dailyfresh your processes number limit is 709 your memory page size is 4096 bytes detected max file descriptor number: 10240 lock engine: OSX spinlocks thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8081 fd 3 Python version: 3.5.2 (default, Oct 21 2017, 11:45:19) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] Set PythonHome to /Users/smart/.virtualenvs/dailyfresh Python main interpreter initialized at 0x7fa6e20006a0 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 415200 bytes (405 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 0 seconds on interpreter 0x7fa6e20006a0 pid: 8115 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 8115) spawned uWSGI worker 1 (pid: 8116, cores: 2) spawned uWSGI worker 2 (pid: 8117, cores: 2) spawned uWSGI worker 3 (pid: 8118, cores: 2) spawned uWSGI worker 4 (pid: 8119, cores: 2) [pid: 8117|app: 0|req: 1/1] 127.0.0.1 () {42 vars in 819 bytes} [Sat Nov 25 17:19:02 2017] GET /goods/8 => generated 9326 bytes in 479 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 0) [pid: 8118|app: 0|req: 1/2] 127.0.0.1 () {42 vars in 819 bytes} [Sat Nov 25 17:19:16 2017] GET /goods/8 => generated 9326 bytes in 375 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) [pid: 8119|app: 0|req: 1/3] 127.0.0.1 () {48 vars in 919 bytes} [Sat Nov 25 18:27:44 2017] POST /cart/add => generated 67 bytes in 408 msecs (HTTP/1.1 200) 3 headers in 94 bytes (2 switches on core 0) *** Starting uWSGI 2.0.18 (64bit) on [Mon May 27 12:47:32 2019] *** compiled with version: 5.4.0 20160609 on 25 May 2019 05:17:46 os: Linux-4.15.0-50-generic #54~16.04.1-Ubuntu SMP Wed May 8 15:55:19 UTC 2019 nodename: hnz-virtual-machine machine: x86_64 clock source: unix pcre jit disabled detected number of CPU cores: 4 current working directory: /home/hnz/py/dailyfresh writing pidfile to uwsgi2.pid detected binary path: /home/hnz/.virtualenvs/pytest/bin/uwsgi chdir() to /home/hnz/py/dailyfresh your processes number limit is 7643 your memory page size is 4096 bytes detected max file descriptor number: 1048576 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8081 fd 3 Python version: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] Set PythonHome to /home/hnz/.virtualenvs/pytest Python main interpreter initialized at 0x24fc680 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 416880 bytes (407 KB) for 8 cores *** Operational MODE: preforking+threaded *** WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x24fc680 pid: 2500 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 2500) spawned uWSGI worker 1 (pid: 2502, cores: 2) spawned uWSGI worker 2 (pid: 2503, cores: 2) spawned uWSGI worker 3 (pid: 2505, cores: 2) spawned uWSGI worker 4 (pid: 2508, cores: 2) [pid: 2502|app: 0|req: 1/1] 127.0.0.1 () {40 vars in 737 bytes} [Mon May 27 12:48:59 2019] GET / => generated 3010 bytes in 6145 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) 设置缓存 /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2508|app: 0|req: 1/2] 127.0.0.1 () {40 vars in 747 bytes} [Mon May 27 12:50:16 2019] GET /index => generated 13287 bytes in 15039 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0) [pid: 2508|app: 0|req: 2/3] 127.0.0.1 () {42 vars in 802 bytes} [Mon May 27 12:51:12 2019] GET /user/order/1 => generated 4559 bytes in 765 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2502|app: 0|req: 2/4] 127.0.0.1 () {42 vars in 792 bytes} [Mon May 27 12:51:49 2019] GET /user/ => generated 4602 bytes in 1135 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 1) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2508|app: 0|req: 3/5] 127.0.0.1 () {42 vars in 792 bytes} [Mon May 27 12:51:54 2019] GET /cart/ => generated 10865 bytes in 81 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 0) [pid: 2502|app: 0|req: 3/6] 127.0.0.1 () {42 vars in 810 bytes} [Mon May 27 12:52:03 2019] GET /goods/index.html => generated 3058 bytes in 13 msecs (HTTP/1.1 404) 2 headers in 80 bytes (1 switches on core 0) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2505|app: 0|req: 1/7] 127.0.0.1 () {46 vars in 883 bytes} [Mon May 27 12:52:12 2019] POST /cart/add => generated 67 bytes in 603 msecs (HTTP/1.1 200) 3 headers in 94 bytes (1 switches on core 0) [pid: 2505|app: 0|req: 2/8] 127.0.0.1 () {42 vars in 789 bytes} [Mon May 27 12:52:41 2019] GET /goods/1 => generated 9465 bytes in 400 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 1) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2502|app: 0|req: 4/9] 127.0.0.1 () {46 vars in 882 bytes} [Mon May 27 12:52:50 2019] POST /cart/add => generated 67 bytes in 98 msecs (HTTP/1.1 200) 3 headers in 94 bytes (1 switches on core 1) /home/hnz/.virtualenvs/pytest/lib/python3.5/site-packages/django_redis/__init__.py:10: RemovedInDjango19Warning: 'get_cache' is deprecated in favor of 'caches'. cache = get_cache(alias) [pid: 2503|app: 0|req: 1/10] 127.0.0.1 () {42 vars in 787 bytes} [Mon May 27 12:53:08 2019] GET /cart/ => generated 12253 bytes in 987 msecs (HTTP/1.1 200) 4 headers in 224 bytes (1 switches on core 0) [pid: 2508|app: 0|req: 4/11] 127.0.0.1 () {46 vars in 894 bytes} [Mon May 27 12:53:16 2019] POST /order/commit => generated 54 bytes in 217 msecs (HTTP/1.1 200) 3 headers in 94 bytes (1 switches on core 1) SIGINT/SIGQUIT received...killing workers... worker 1 buried after 1 seconds worker 2 buried after 1 seconds worker 3 buried after 1 seconds worker 4 buried after 1 seconds goodbye to uWSGI. ================================================ FILE: dailyfresh/uwsgi2.pid ================================================ 2500 ================================================ FILE: requirements.txt ================================================ amqp==1.4.9 anyjson==0.3.3 billiard==3.3.0.23 celery==5.2.2 certifi==2023.7.22 chardet==3.0.4 Django==2.2.28 django-haystack==2.7.0 django-redis==3.8.4 django-redis-sessions==0.5.6 django-tinymce==3.4.0 fdfs-client-py==1.2.6 idna==2.8 itsdangerous==1.1.0 jieba==0.39 kombu==3.0.37 mutagen==1.42.0 Pillow==9.0.1 pycryptodomex==3.7.2 PyMySQL==0.9.3 python-alipay-sdk==1.10.0 pytz==2019.1 redis==2.10.6 redis-py-cluster==1.3.6 requests==2.31.0 sqlparse==0.3.0 urllib3==1.26.5 uWSGI==2.0.18 vine==1.3.0 Whoosh==2.7.4