eamigo86 / graphene-django-extras

Extras functionalities for Graphene-Django
MIT License
417 stars 107 forks source link

ImportError: cannot import name 'force_text' from 'django.utils.encoding' #178

Open longbowou opened 2 years ago

longbowou commented 2 years ago

Hi, just tried to upgrade to django from 3 => 4, but then I get this error at run server :

ImportError: cannot import name 'force_text' from 'django.utils.encoding' File "/usr/local/lib/python3.10/site-packages/graphene_django_extras/converter.py", line 12

force_text() is deprecated with Django 3 in favor of force_str() https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-4-0

Please can you consider upgrade ?

Thanks

javi-code commented 2 years ago

I have the same problem, the update is very necessary