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