im testing django rest_framework tutorial and I’m in part 6, this is where the routers.
When I try to enter the url of the snippets, I get the following error:
ImproperlyConfigured at /snippets/
Could not resolve URL for hyperlinked relationship using view name “fragmento”. You may have failed to include the related model in your API, or incorrectly configured the lookup_field
attribute on this field.
Everything was working fine in part 5 with the hyperlinks, but everything fell apart when we moved on to the routers part.
thanks for your help
Ronny Omnier González Vargas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1