Home > Net >  ImportError: Could not import 'rest_framework.pagination.LimitOffsetPagination'
ImportError: Could not import 'rest_framework.pagination.LimitOffsetPagination'

Time:12-11

I am going to use latest django 4.0 with djangorestframework.

After command: python manage.py runserver

ImportError: Could not import 'rest_framework.pagination.LimitOffsetPagination' for API setting 'DEFAULT_PAGINATION_CLASS'. ModuleNotFoundError: No module named 'pytz'.

CodePudding user response:

Try the following command

pip install pytz

CodePudding user response:

For pipenv:

pipenv install pytz
  • Related