摘要: 国内 163 yum 源挺好用 (中科大的也不错) http://mirrors.163.com/.help/CentOS6-Base-163.repo yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc gcc-c++ openssl-devel 阅读全文
posted @ 2019-03-29 17:50 我爱敲代码 阅读(1561) 评论(0) 推荐(0)
摘要: def uploadGrade(request): ''' 班级信息导入 :param request: :return: ''' if request.method == 'POST': f = request.FILES.get('file') excel_type = f.name.split('.')[1] ... 阅读全文
posted @ 2019-03-20 15:31 我爱敲代码 阅读(1331) 评论(0) 推荐(0)
摘要: 上传文件 阅读全文
posted @ 2019-03-19 15:39 我爱敲代码 阅读(1362) 评论(0) 推荐(0)
摘要: ps -ef | grep dr_server | grep -v grep | awk '{print $2}' | xargs kill -9 阅读全文
posted @ 2019-03-18 17:10 我爱敲代码 阅读(684) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/bingo1024/p/9018212.html 阅读全文
posted @ 2019-03-07 17:16 我爱敲代码 阅读(728) 评论(0) 推荐(0)
摘要: 1、session认证 2、jwt认证 如果是JWT认证模式,比较麻烦,个人的解决方法是,每个用户登录后,在redis中存储用户的jwt_token. key是用户的id,value是用户最新的jwt_token. 因为用的django-jwt库,所以这里定义了自己的LoginJWT, 继承JSON 阅读全文
posted @ 2019-03-07 16:05 我爱敲代码 阅读(2198) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/oskyhg/p/8011001.html 阅读全文
posted @ 2019-03-07 14:21 我爱敲代码 阅读(105) 评论(0) 推荐(0)
摘要: yum install httpd-devel 阅读全文
posted @ 2019-03-07 13:45 我爱敲代码 阅读(456) 评论(0) 推荐(0)
摘要: 🔗https://blog.csdn.net/chszs/article/details/49469655?utm_source=blogxgwz6 阅读全文
posted @ 2019-03-07 09:29 我爱敲代码 阅读(699) 评论(0) 推荐(0)
摘要: class MyType(type): def __init__(self, a, b, c): print('元类构造函数执行') def __call__(self, *args, **kwargs): obj = object.__new__(self) self.__init__(obj, *args, **kwargs)... 阅读全文
posted @ 2019-01-15 09:56 我爱敲代码 阅读(117) 评论(0) 推荐(0)