Django inlinecss smart_txt error because it had been replaced with smart_str post django 3.0
Opened this issue · 3 comments
Grey-A commented
Im getting an import error because of smart_txt, django has replaced it with smart_str, are there any fixes?
rlancejohnson commented
Any update on this?
fglaria commented
Same question.
Is it going to be fixed?
PaulleDemon commented
Seem like this library is no longer being maintained, as workaround add the below in settings.py
import django
from django.utils.encoding import smart_str
django.utils.encoding.smart_text = smart_str