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

smart_text import error #62

Open
chryzcode opened this issue Sep 9, 2022 · 1 comment
Open

smart_text import error #62

chryzcode opened this issue Sep 9, 2022 · 1 comment

Comments

@chryzcode
Copy link

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
Copy link

residentcode commented Jan 28, 2023

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

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

2 participants