摘要: 使用2.2 版本的django时,出现django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.,查了资料才知道是兼容问题 出现此类问题 方法一可删除项目根 阅读全文
posted @ 2020-05-23 17:44 **绵绵羊** 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 代码: def login(request): if request.POST: username = request.POST.get('username') password = request.POST.get('password') user = auth.authenticate(user 阅读全文
posted @ 2020-05-23 17:04 **绵绵羊** 阅读(242) 评论(0) 推荐(0) 编辑