format_suffix_patterns causes error in viewsets and routers tutorial #9155
Replies: 1 comment
-
Already saw the problem. format_suffix_pattern was being called twice and I didn't comment out my last call. Please ignore this discussion and close it. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I've been following the viewsets and routers tutorial and ran into this issue:
This has been my code so far. The only solutions I've found was to remove format_suffix_patterns and am currently finding other solutions so that I can still use suffix patterns in the url.
I've also tried using routers instead of registering them straight, and ran into the same problem:
The following is the code I have so far:
Again the only solution I've found was to turn off format_suffix_patterns by doing so:
router.include_format_suffixes = False
Any help would be greatly appreciated! Thank you.
Beta Was this translation helpful? Give feedback.
All reactions