lookup error at router

6 views
Skip to first unread message

shubham joshi

unread,
Sep 5, 2019, 3:56:13 AM9/5/19
to Django users

HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "teacher": "http://127.0.0.1:8000/users/teacher/",
    "student": "http://127.0.0.1:8000/users/student/"
}



whenever I hit to either of the link

"http://127.0.0.1:8000/users/teacher/",or
"http://127.0.0.1:8000/users/student/" then


Could not resolve URL for hyperlinked relationship using view name "user-detail". You may have failed to include the related model in your API, or incorrectly configured the `lookup_field` attribute on this field.
Reply all
Reply to author
Forward
0 new messages