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' #24

Open
HairlessVillager opened this issue Apr 30, 2024 · 0 comments

Comments

@HairlessVillager
Copy link

  • Python: 3.11.5
  • Django: 5.0
  • django-hashedfilenamestorage: 2.4.1
(django) E:\code\python\xxx\>python
Python 3.11.5 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:26:23) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import django_hashedfilenamestorage.storage.HashedFilenameFileSystemStorage
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "D:\Anaconda\anaconda3\envs\django\Lib\site-packages\django_hashedfilenamestorage\storage.py", line 7, in <module>
    from django.utils.encoding import force_text
ImportError: cannot import name 'force_text' from 'django.utils.encoding' (D:\Anaconda\anaconda3\envs\django\Lib\site-packages\django\utils\encoding.py)
>>>
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

1 participant