04 2020 档案

摘要:TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTION 阅读全文
posted @ 2020-04-28 17:30 程序员小艺 阅读(270) 评论(0) 推荐(0) 编辑
摘要:是因为settings.py里面重复注册了app名称 阅读全文
posted @ 2020-04-28 17:28 程序员小艺 阅读(633) 评论(0) 推荐(0) 编辑
摘要:nohup command & 阅读全文
posted @ 2020-04-28 13:20 程序员小艺 阅读(912) 评论(0) 推荐(0) 编辑
摘要:可能是因为计算机中文名称引起的 阅读全文
posted @ 2020-04-28 00:20 程序员小艺 阅读(198) 评论(0) 推荐(0) 编辑
摘要:php think worker:gateway 阅读全文
posted @ 2020-04-23 15:02 程序员小艺 阅读(458) 评论(0) 推荐(0) 编辑
摘要:face_recognition简介 face_recognition是Python的一个开源人脸识别库,支持Python 3.3+和Python 2.7。引用官网介绍: Recognize and manipulate faces from Python or from the command l 阅读全文
posted @ 2020-04-18 09:22 程序员小艺 阅读(216) 评论(0) 推荐(0) 编辑
摘要:import cv2 import dlib import numpy as np import os class Config(object): predictor_path = 'shape_predictor_68_face_landmarks.dat' test_img = 'test.jp 阅读全文
posted @ 2020-04-17 14:09 程序员小艺 阅读(269) 评论(0) 推荐(0) 编辑
摘要:import face_recognition #官方api文档:https://face-recognition.readthedocs.io/en/latest/face_recognition.html first_image = face_recognition.load_image_fil 阅读全文
posted @ 2020-04-17 13:17 程序员小艺 阅读(337) 评论(0) 推荐(0) 编辑
摘要:wx.getLocation({//获取当前经纬度 type: 'wgs84', //返回可以用于wx.openLocation的经纬度,官方提示bug: iOS 6.3.30 type 参数不生效,只会返回 wgs84 类型的坐标信息 success: function (res) { wx.op 阅读全文
posted @ 2020-04-10 15:35 程序员小艺 阅读(1073) 评论(0) 推荐(0) 编辑
摘要:settings.py MEDIA_ROOT = os.path.join(BASE_DIR, 'upload/').replace('\\', '/') # upload即为图片上传的根路径 阅读全文
posted @ 2020-04-07 19:37 程序员小艺 阅读(305) 评论(0) 推荐(0) 编辑
摘要:from django.urls import path,include,re_pathfrom auction.settings import MEDIA_ROOTfrom django.views.static import serve urlpatterns = [ re_path(r'^up 阅读全文
posted @ 2020-04-07 19:35 程序员小艺 阅读(200) 评论(0) 推荐(0) 编辑
摘要:1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld开机禁用 : systemctl disable firewalld开机启用 : syst 阅读全文
posted @ 2020-04-07 13:43 程序员小艺 阅读(127) 评论(0) 推荐(0) 编辑
摘要:1,swoole监听的端口没开 在腾讯云控制台中 配置安全组 添加入站规则 0.0.0.0/0 > tcp:9501 2, swoole 127.0.0.1修改成localhost $http = new swoole_http_server("localhost", 9501); 阅读全文
posted @ 2020-04-07 13:42 程序员小艺 阅读(257) 评论(0) 推荐(0) 编辑
摘要:use PhpOffice\PhpWord\PhpWord;use PhpOffice\PhpWord\IOFactory; $info = public_path().'/uploads/admin/examination/test.docx'; $phpWord = new PhpWord(); 阅读全文
posted @ 2020-04-03 23:43 程序员小艺 阅读(5229) 评论(0) 推荐(0) 编辑
摘要:修改redis.conf文件 vim redis.conf #注释掉它,以便让外网访问 #bind 127.0.0.1 #后台进程方式启动 daemonize yes #requirepass foobared去掉注释,foobared改为自己的密码 重启redis服务 ./redis-server 阅读全文
posted @ 2020-04-03 13:41 程序员小艺 阅读(1168) 评论(0) 推荐(0) 编辑
摘要:$(document).delegate(".class_name", "mouseout", function () { $("#qrcode").hide();}); $(document).delegate("#id_name", "mouseout", function () { $("#q 阅读全文
posted @ 2020-04-01 23:12 程序员小艺 阅读(371) 评论(0) 推荐(0) 编辑
摘要:location /{ try_files $uri $uri/ /index.php?$uri&$args; } 阅读全文
posted @ 2020-04-01 11:35 程序员小艺 阅读(313) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示