text: from django.http.response import JsonResponse
  from django.shortcuts import render
  from .models import Movie
  from django.http import JsonResponse
  
  
  def movie_list(request):
      movie = Movie.objects.all()
  
      data = {
          "movies": list(movie.values())
      }
  
      return JsonResponse(data)
  
  
  def movie_details(request, pk):
      movie = Movie.objects.get(pk=pk)
  
      data = {
          "name": movie.name,
          "description": movie.description,
          "active": movie.active,
      }
  
      return JsonResponse(data)
  