02 2021 档案

摘要:import pymysql import threading from pymysql.cursors import DictCursor from settings import HOST, PORT, USER, PASSWORD, DATABASE from nxlog import log 阅读全文
posted @ 2021-02-05 10:42 GokuBlog 阅读(104) 评论(0) 推荐(0)
摘要:# -*- coding: utf-8 -*- import oss2 from settings import ALI_ACCESS_KEY, ALI_SECRET_KEY, OSS_BUCKET, OSS_ENDPOINT class AliOss(): def __init__(self): 阅读全文
posted @ 2021-02-05 10:40 GokuBlog 阅读(352) 评论(0) 推荐(0)
摘要:from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from itsdangerous import SignatureExpired from settings import SECRET_KEY def s 阅读全文
posted @ 2021-02-05 10:38 GokuBlog 阅读(70) 评论(0) 推荐(0)
摘要:--创建数据库 from flask_sqlalchemy import SQLAlchemy from flask import Flask import pymysql """ app.config["SQLALCHEMY_DATABASE_URL"]= "[db]+[db_engine]:// 阅读全文
posted @ 2021-02-05 10:25 GokuBlog 阅读(128) 评论(0) 推荐(0)