from django.shortcuts import render
from django.views.generic.base import View
from .models import Movie
class MovieViews(View):
"""Список фильмов"""
def get(self, recuest):
movies = Movie.objects.all()
return render(recuest, "movies/movie_list.html", {"movie_list": movies})
from django.shortcuts import render
from django.views.generic.base import View
from .models import Movie
class MovieViews(View):
"""Список фильмов"""
def get(self, recuest):
movies = Movie.objects.all()
return render(recuest, "/movies/movie_list.html", {"movie_list": movies})