[Answered ]-Django REST – How do I correctly configure URLs lookup_field?

1👍

Your view is expecting username URL parameter, but it receives slug. You can either change your URL to pass on username instead of slug, or set lookup_url_kwarg to slug on your view to fix that situation.

Leave a comment