摘要: 是因为settings.py里面重复注册了app名称 阅读全文
posted @ 2020-04-28 17:28 程序员小艺 阅读(629) 评论(0) 推荐(0) 编辑
摘要: nohup command & 阅读全文
posted @ 2020-04-28 13:20 程序员小艺 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 可能是因为计算机中文名称引起的 阅读全文
posted @ 2020-04-28 00:20 程序员小艺 阅读(197) 评论(0) 推荐(0) 编辑
摘要: php think worker:gateway 阅读全文
posted @ 2020-04-23 15:02 程序员小艺 阅读(454) 评论(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 程序员小艺 阅读(203) 评论(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 程序员小艺 阅读(265) 评论(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 程序员小艺 阅读(330) 评论(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 程序员小艺 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: settings.py MEDIA_ROOT = os.path.join(BASE_DIR, 'upload/').replace('\\', '/') # upload即为图片上传的根路径 阅读全文
posted @ 2020-04-07 19:37 程序员小艺 阅读(304) 评论(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 程序员小艺 阅读(197) 评论(0) 推荐(0) 编辑