[Django]-From rest_framework.filters import SearchFilter generates error as cannot import name 'ORDER_PATTERN' from 'django.db


This looks like a compatibility problem between the versions of Django and Django Rest Framework. Upgrading to the latest version of DRF should resolve it.

(I had this error after upgrading Django 3.0.x to 3.2)



Update all packeges you have installed in your project

pip install <package_name> --upgrade

Leave a comment