写models.py时缺少了一个 verbose_name,导致数据库出现问题,整了很久,摸索出重新建立数据库的方法: 首先删除每个app中的migrations中的除了init.py的文件,在数据库中清空所有的表,然后执行migrate,这时会...
在django项目配置一下多数据库,但是运行 makemigrations 执行不正常 $ python manage.py makemigrations polls no changes detected in app 'polls' models.py 代码: class question(models.model): ...
执行python manage.py makemigrations 一直报 auth_user_model refers to model 'user.users' that has not been installed 烦坏了