How to Solve NameError: name 'LimitOffsetPagination' is not defined -- rest_framework

Solution: Import the 'LimitOffsetPagination' module

To Solve the error, add the following line to the top of your code.

from rest_framework.pagination import LimitOffsetPagination

 

For more information:
Python rest_framework LimitOffsetPagination