[Answered ]-I get an error when I install the SWITIFY package, does anyone know what it means?

1👍

Looks like sweetify is not compatible with Django 4.0. See the changelog: https://docs.djangoproject.com/en/4.0/releases/4.0/#features-removed-in-4-0

django.utils.encoding.force_text() and smart_text() are removed.

Try with older version of django, I recommend 3.2.13 🙂

0👍

this error is coming from django v4 . according to django documentation django.utils.encoding.force_text() and smart_text() are removed.

possible solution :

1 – using Django version 4> add in settings.py :

import django
from django.utils.encoding import force_str
django.utils.encoding.force_text = force_str
  1. Downgrade your django version to django<=3
👤monim

Leave a comment