04 2020 档案
摘要:TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, 'templates')], 'APP_DIRS': True, 'OPTION
阅读全文
摘要:是因为settings.py里面重复注册了app名称
阅读全文
摘要:可能是因为计算机中文名称引起的
阅读全文
摘要:php think worker:gateway
阅读全文
摘要:face_recognition简介 face_recognition是Python的一个开源人脸识别库,支持Python 3.3+和Python 2.7。引用官网介绍: Recognize and manipulate faces from Python or from the command l
阅读全文
摘要: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
阅读全文
摘要:import face_recognition #官方api文档:https://face-recognition.readthedocs.io/en/latest/face_recognition.html first_image = face_recognition.load_image_fil
阅读全文
摘要:wx.getLocation({//获取当前经纬度 type: 'wgs84', //返回可以用于wx.openLocation的经纬度,官方提示bug: iOS 6.3.30 type 参数不生效,只会返回 wgs84 类型的坐标信息 success: function (res) { wx.op
阅读全文
摘要:settings.py MEDIA_ROOT = os.path.join(BASE_DIR, 'upload/').replace('\\', '/') # upload即为图片上传的根路径
阅读全文
摘要:from django.urls import path,include,re_pathfrom auction.settings import MEDIA_ROOTfrom django.views.static import serve urlpatterns = [ re_path(r'^up
阅读全文
摘要:1、firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld开机禁用 : systemctl disable firewalld开机启用 : syst
阅读全文
摘要:1,swoole监听的端口没开 在腾讯云控制台中 配置安全组 添加入站规则 0.0.0.0/0 > tcp:9501 2, swoole 127.0.0.1修改成localhost $http = new swoole_http_server("localhost", 9501);
阅读全文
摘要:use PhpOffice\PhpWord\PhpWord;use PhpOffice\PhpWord\IOFactory; $info = public_path().'/uploads/admin/examination/test.docx'; $phpWord = new PhpWord();
阅读全文
摘要:修改redis.conf文件 vim redis.conf #注释掉它,以便让外网访问 #bind 127.0.0.1 #后台进程方式启动 daemonize yes #requirepass foobared去掉注释,foobared改为自己的密码 重启redis服务 ./redis-server
阅读全文
摘要:$(document).delegate(".class_name", "mouseout", function () { $("#qrcode").hide();}); $(document).delegate("#id_name", "mouseout", function () { $("#q
阅读全文
摘要:location /{ try_files $uri $uri/ /index.php?$uri&$args; }
阅读全文