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
- Downgrade your django version to django<=3
- [Answered ]-Django, DRF Token authentication doesn't work, get Anonymous User
- [Answered ]-Use Django as an API backend for an iOS app?
- [Answered ]-Django Admin panel not working with https
- [Answered ]-Multiple Choice Django Checkbox Form Validation
Source:stackexchange.com