Tutorial, part 6 yields a broken project #8564
Unanswered
chgans
asked this question in
Potential Issue
Replies: 1 comment
-
Yup was wondering the same thing. You can also just remove the plural ‘s’ in the base names as well. But yes very confusing and definitely an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the very end of part 6, https://www.django-rest-framework.org/tutorial/6-viewsets-and-routers/#using-routers
If you follow the tutorial, you end up with errors like
As a beginner, it is not easy to understand what the problem is.
Turns out that
basename
needs to be removed.from
to
This fixes the issue.
BTW, there's no explanation on why
basename
was needed.I found the tutorial to be excellent! But IMO, the last part doesn't seem polished.
Beta Was this translation helpful? Give feedback.
All reactions