Hi I\'m new to both Django and the Django-Rest-Framework. I\'ve gone through the tutorials. What I\'m trying to do (as a learning exercise) is return an object based off a f
Credit https://www.youtube.com/watch?v=dWZB_F32BDg
Use lookup_field to define the field used for querying the table and look_up_kwargs for the field in the url
url(r'^videos/(?P
class VideoDetailView(viewsets.ModelViewSet):
serializer_class = VideosSerializer
queryset = Videos.objects.all()
lookup_field = 'videoName'
lookup_url_kwarg = 'videoName'