roverdotcom / django-inlinecss

A Django app useful for inlining CSS (primarily for e-mails)
Other
160 stars 94 forks source link

Django inlinecss smart_txt error because it had been replaced with smart_str post django 3.0 #60

Open Grey-A opened 2 years ago

Grey-A commented 2 years ago

Im getting an import error because of smart_txt, django has replaced it with smart_str, are there any fixes?

rlancejohnson commented 2 years ago

Any update on this?

fglaria commented 2 years ago

Same question. Is it going to be fixed?

PaulleDemon commented 2 years ago

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