Tastypie in django

Please can anyone help me with this error I keep getting while going through Mosh’s course on python in lesson in lesson 19.:

“from tastypie.resources import ModelResource
ModuleNotFoundError: No module named ‘tastypie’”

I have followed the course with ubuntu server and everything kept going well until at this stage. Answers I got from google search on this error are not helpful. I installed django-tastypie becaus when I do pipenv graph it shows as installed. as f;llows:

"vidly$ pipenv graph
Django==2.1
└── pytz [required: Any, installed: 2024.1]
django-tastypie==0.14.7
├── python-dateutil [required: >=2.1, installed: 2.9.0.post0]
│ └── six [required: >=1.5, installed: 1.16.0]
└── python-mimeparse [required: >=0.1.4,!=1.5, installed: 1.6.0]
install==1.3.5
eugene@ubuntujelly:~/vidly$

I created all the files as were done in the video tutorial , yet no success. Can anyone help me here please?

Thanks in advance.

Files are as follows:

vidly/api/models.py :
from django.db import models
from tastypie.resources import ModelResource
from movies.models import Movie

class MovieResource(ModelResource):
class Meta:
queryset = Movie.object.all()
resource_name = ‘movies’
exclude[‘date_created’]

vidly/vidly/settings.py:
INSTALLED_APPS = [
‘django.contrib.admin’,
‘django.contrib.auth’,
‘django.contrib.contenttypes’,
‘django.contrib.sessions’,
‘django.contrib.messages’,
‘django.contrib.staticfiles’,
‘movies.apps.MoviesConfig’,
‘api.apps.ApiConfig’

vidly/vidly/urls.py:
from django.contrib import admin
from django.urls import path, include
from api.models import MovieResource

movie_resource = MovieResource()

urlpatterns = [
path(‘admin/’, admin.site.urls),
path(‘movies/’, include(‘movies.urls’))
path(‘api/’, include(movie_resource.urls))

vidly/api/apps;py:

from django.apps import AppConfig
class ApiConfig(AppConfig):
name = ‘api’