摘要: 保障系统之登录注册功能讲解 生成验证码函数 from utils.check_code import create_validate_code 补充: 一个月免登陆 request.session.set_expiry(60 * 60 * 24 * 30) SESSION_COOKIE_AGE = 阅读全文
posted @ 2020-01-28 14:54 大仙秋 阅读(114) 评论(0) 推荐(0) 编辑
摘要: url中的反射函数 from django.urls import reverse reverse('index',kwargs={"article_type_id":1}) =>1.html 阅读全文
posted @ 2020-01-28 00:42 大仙秋 阅读(98) 评论(0) 推荐(0) 编辑