![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
django
Dan.Qiao
90%努力+%10幸运=100%幸福
展开
-
pymysql版本0.9.3,django2.X需要>=1.3.13的版本
环境django版本:2.2.1python版本:3.6.6在搭建django项目,配置mysql数据库时遇到无法迁移数据库的问题,错误信息如下:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.问题分析过程由错误信息,可大致看出是一...原创 2019-09-04 18:21:52 · 3013 阅读 · 0 评论 -
django 模型里面自定义定长字段类
from django.db import models# Create your models here.class CCharField(models.Field): def __init__(self, max_length, *args, **kwargs): self.max_length = max_length super(CCharFi...原创 2019-09-09 21:15:50 · 1468 阅读 · 0 评论