2020年5月8日
摘要: import django import os,sys base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(base_dir) os.environ.setdefault("DJ 阅读全文
posted @ 2020-05-08 15:24 仙人小麦 阅读(126) 评论(0) 推荐(0) 编辑
摘要: import random from PIL import Image,ImageDraw, ImageFont, ImageFilter def check_code(width=120, height=30, char_length=5, font_file='Monaco.ttf', font 阅读全文
posted @ 2020-05-08 15:22 仙人小麦 阅读(165) 评论(0) 推荐(0) 编辑
摘要: import uuid import hashlib from script import base from django.conf import settings def encrypt(info): hash_object = hashlib.md5(settings.SECRET_KEY.e 阅读全文
posted @ 2020-05-08 15:20 仙人小麦 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1.申请开通沙箱环境 https://openhome.alipay.com/platform/appDaily.htm?tab=info 注册成功之后会获取两个值: APPID,2016102400754054 支付宝网关 https://openapi.alipaydev.com/gateway 阅读全文
posted @ 2020-05-08 14:52 仙人小麦 阅读(477) 评论(0) 推荐(0) 编辑
摘要: #pycharm.idea/__pycache__/*.py[cod]*$py.class#Django stuff:local_settings.py*.sqlite3# detabase migrations*/migrations/*.py!*/migrations/__init__.pyte 阅读全文
posted @ 2020-05-08 13:37 仙人小麦 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 一,折线图 1.前端 <script src="{% static "plugin/highcharts/highcharts.js" %}"></script> 引用 <div class="panel panel-default"> <div class="panel-heading"> <i 阅读全文
posted @ 2020-05-08 10:37 仙人小麦 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 1.引用 <div> <div class="input-group" style="width: 300px;"> <span class="input-group-addon">日期范围</span> <input id="rangePicker" type="text" class="form 阅读全文
posted @ 2020-05-08 10:26 仙人小麦 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 1.引用 <script src="{% static "plugin/select2/js/i18n/zh-CN.js" %}"></script> <script src="{% static "plugin/select2/js/select2.min.js" %}"></script> 2. 阅读全文
posted @ 2020-05-08 10:19 仙人小麦 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 1.引入 <link rel="stylesheet" href="{% static "plugin/bootstrap-select/css/bootstrap-select.css" %}"> <script src="{% static "plugin/bootstrap-select/js 阅读全文
posted @ 2020-05-08 10:13 仙人小麦 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1.引入 <link rel="stylesheet" href="{% static "plugin/bootstrap-datepicker/css/bootstrap-datepicker.min.css" %}"> <script src="{% static "plugin/bootstr 阅读全文
posted @ 2020-05-08 10:02 仙人小麦 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 1.前端html展示 <div id="content"> {{ field }} 这里必须是input type="text" 标签 </div> 2.JS 1.导入 <link rel="stylesheet" href="{% static "plugin/editor.md-master/c 阅读全文
posted @ 2020-05-08 09:53 仙人小麦 阅读(1694) 评论(0) 推荐(0) 编辑
摘要: 参考 腾讯官方文档 from qcloud_cos import CosConfig from qcloud_cos import CosS3Client from sts.sts import Sts from untitled import settings from qcloud_cos.co 阅读全文
posted @ 2020-05-08 09:45 仙人小麦 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 参考:1.腾讯官方文档 2 .https://pythonav.com/wiki/detail/10/81/ 1.安装SDK pip install qcloudsms_py 2.基于SDK发送短信 # @Time : 2020/3/31 0031 下午 7:18 # @Author : Admin 阅读全文
posted @ 2020-05-08 09:38 仙人小麦 阅读(367) 评论(0) 推荐(1) 编辑