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

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

Open
longbowou opened this issue Dec 10, 2021 · 1 comment

Comments

@longbowou
Copy link

longbowou commented Dec 10, 2021

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

I have the same problem, the update is very necessary

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