smart_text import error
Opened this issue · 1 comments
chryzcode commented
In the file django_inlinecss/templatetags/inlinecss.py, I've been getting smart_text error which is as a result of line 7 code from django.utils.encoding import smart_text
.
residentcode commented
Yes in django 4 changed to smart_str https://docs.djangoproject.com/en/4.1/_modules/django/utils/encoding/
use this
pip install django-inlinecss@git+https://github.com/blocher/django-inlinecss.git@django4