首页 > 解决方案 > module 'django.db.models' has no attribute 'model'

问题描述

enter image description hereI am very new to django and i just got an error (module 'django.db.models' has no attribute 'model') while creating a website for my project . can anyone help me to resolve these issue ?

标签: pythondjangopycharm

解决方案


它区分大小写:models.Model。顺便说一句,您的字段定义也是如此。


推荐阅读