Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Grey-A opened this issue Jun 18, 2022 · 3 comments

Comments

@Grey-A
Copy link

Grey-A commented Jun 18, 2022

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

@rlancejohnson
Copy link

Any update on this?

@fglaria
Copy link

fglaria commented Aug 8, 2022

Same question.
Is it going to be fixed?

@PaulleDemon
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants