realpython / realpython/materials
Cannot resolve keyword 'post' into field. Choices are: author, body, created_on, id, posts,
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 5.2k
- Forks
- 5.3k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 10
Description
| 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 |
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the GET request at http://127.0.0.1:8000/blog/5/ and inspect the blog view and model query that produces the FieldError. Trace the requested 'post' field against the listed available fields, then verify that the page loads without the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100