How to Solve NameError: name 'viewsets' is not defined -- rest_framework
Solution: Import the 'viewsets' module
# Add the following line to the top of your code
from rest_framework import viewsets
For more information:
rest_framework viewsets
# Add the following line to the top of your code
from rest_framework import viewsets
For more information:
rest_framework viewsets