Typo in 6. Viewsets and routers of the tutorial in the docs causing Runtime Error #8481
-
The basename specified in Using Routers should be Further details:Following the docs this way will lead to a runtime error of improperly configured at /snippets/ when accessing the snippet list and detail likewise the user list and detail. Why?The basename isn't in sync with what has been used earlier in Hyperlinking Our Api of Chap 5. Relationships and Hyperlinking of the tutorial. I'll love to create an issue and pull request to fix the typo. Thanks!🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
ERROR: Could not resolve URL for hyperlinked relationship using view name "snippet-detail". You may have failed to include the related model in your API, or incorrectly configured the |
Beta Was this translation helpful? Give feedback.
ERROR: Could not resolve URL for hyperlinked relationship using view name "snippet-detail". You may have failed to include the related model in your API, or incorrectly configured the
lookup_field
attribute on this field.