realpython / realpython/materials
ValueError at /blog/5/ The QuerySet value for an exact lookup must be limited to one result using slicing.
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 | |
| ValueError | |
| The QuerySet value for an exact lookup must be limited to one result using slicing. | |
| C:\Users\UPosia\Anaconda3\envs\conjango\lib\site-packages\django\db\models\lookups.py in process_rhs, line 257 | |
| 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'] | |
| Fri, 9 Aug 2019 11:31:32 +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 for http://127.0.0.1:8000/blog/5/ and inspect the application code involved in the failing exact lookup, using the reported Django traceback as the starting point. Done means the page loads without the ValueError.
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
- 35/100