Django Rest Framework -- no module named rest_framework Django Rest Framework -- no module named rest_framework python python

Django Rest Framework -- no module named rest_framework


You need to install django rest framework using pip3 (pip for python 3):

pip3 install djangorestframework

Instructions on how to install pip3 can be found here


if you forget ,,this will happen,it's weird

wrong example: need a ,

INSTALLED_APPS = ['rest_framework''django.contrib.contenttypes','django.contrib.admin','django.contrib.auth','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles',]


Also, check for the possibility of a tiny typo:

It's rest_framework with an underscore (_) in between!

Took me a while to figure out that I was using a dash instead... 😅