Python - How to import 'RangeWidget' -- django_filters
Import RangeWidget
To import RangeWidget, Add the following line to the top of your code.
from django_filters.widgets import RangeWidget
For more information about RangeWidget:
django_filters RangeWidget