python - 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 ?
解决方案
它区分大小写:models.Model。顺便说一句,您的字段定义也是如此。
推荐阅读
- informix - IBM Informix SQL 中的 LIKE
- android - Kotlin 中的自定义 SeekBar
- arrays - VBA宏:获取一组条件的最大匹配单元格值
- amazon-web-services - 驱逐 pod kube-system/dns-controller 卡住
- fastlane - 为什么使用fastlane match nuke时还需要输入密码
- typescript - 在 VS Code 中对 AWS SAM 无服务器应用程序进行 TypeScript 调试
- docker - Traefik 将 SSL 转发到 php-nginx docker 映像(到 Laravel 的 https 流量)
- python - 基于多个用户输入值过滤 Pandas 数据帧
- html - div后动态添加div
- sql - 在表中的每条记录中创建数据验证的最简单方法是什么?