# Tastypie in django

**URL:** <https://forum.codewithmosh.com/t/tastypie-in-django/26708>\
**Category:** Django\
**Created:** [May 15, 2024, 7:15pm UTC](https://forum.codewithmosh.com/t/tastypie-in-django/26708 "2024-05-15T19:15:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugestel](https://avatars.discourse-cdn.com/v4/letter/e/3e96dc/32.png) [@eugestel](https://forum.codewithmosh.com/u/eugestel)\
**Post date:** [May 15, 2024, 7:15pm UTC](https://forum.codewithmosh.com/t/tastypie-in-django/26708/1 "2024-05-15T19:15:21Z")

</div>

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’
