realpython / realpython/materials
Cannot resolve keyword 'post' into field. Choices are: author, body, created_on, id, posts,
未关闭
还没有人认领这个 Issue。
- 主要语言
- Jupyter Notebook
- 星标
- 5.2k
- 派生
- 5.3k
- 平均合并
- 4 天 10 小时
- 30 天内合并 PR
- 10
描述
| Request Method: | GET |
|---|---|
| http://127.0.0.1:8000/blog/5/ | |
| 2.2.1 | |
| FieldError | |
| Cannot resolve keyword 'post' into field. Choices are: author, body, created_on, id, posts, posts_id | |
| C:\Users\UPosia\Anaconda3\envs\conjango\lib\site-packages\django\db\models\sql\query.py in names_to_path, line 1420 | |
| C:\Users\UPosia\Anaconda3\envs\conjango\python.exe | |
| 3.7.3 | |
| ['F:\My_Django\personal_portfolio\src', 'C:\Users\UPosia\Anaconda3\envs\conjango\python37.zip', 'C:\Users\UPosia\Anaconda3\envs\conjango\DLLs', 'C:\Users\UPosia\Anaconda3\envs\conjango\lib', 'C:\Users\UPosia\Anaconda3\envs\conjango', 'C:\Users\UPosia\Anaconda3\envs\conjango\lib\site-packages'] | |
| Thu, 8 Aug 2019 19:03:40 +0000 |
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
重现对 http://127.0.0.1:8000/blog/5/ 的 GET 请求,并检查产生 FieldError 的博客视图和模型查询。将请求的 'post' 字段与列出的可用字段进行对照,然后验证页面是否能够在没有异常的情况下加载。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- django, python
- 领域
- backend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100