摘要:
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
阅读全文
摘要:
import random from PIL import Image,ImageDraw, ImageFont, ImageFilter def check_code(width=120, height=30, char_length=5, font_file='Monaco.ttf', font
阅读全文
摘要:
import uuid import hashlib from script import base from django.conf import settings def encrypt(info): hash_object = hashlib.md5(settings.SECRET_KEY.e
阅读全文
摘要:
1.申请开通沙箱环境 https://openhome.alipay.com/platform/appDaily.htm?tab=info 注册成功之后会获取两个值: APPID,2016102400754054 支付宝网关 https://openapi.alipaydev.com/gateway
阅读全文
摘要:
#pycharm.idea/__pycache__/*.py[cod]*$py.class#Django stuff:local_settings.py*.sqlite3# detabase migrations*/migrations/*.py!*/migrations/__init__.pyte
阅读全文