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

还是在django高版本用不了的问题cannot import name 'utc' from 'django.utils.timezone' #45

Open
zsq44 opened this issue Jun 16, 2024 · 1 comment

Comments

@zsq44
Copy link

zsq44 commented Jun 16, 2024

打扰了,又是我。
django.core.files.storage.handler.InvalidStorageError: Could not find backend 'django_oss_storage.backends.OssMediaStorage': cannot import name 'utc' from 'django.utils.timezone'

应该也是和django4.0用不了的问题一样,不过这次是用的是django5.1,不知道4.0的能不能用。

@leafcoder
Copy link

用不了,django4 会报错,如下:

>>> from django.utils.encoding import force_text, force_bytes
ImportError: cannot import name 'force_text' from 'django.utils.encoding'

这个包目前看起来官方是没有更新的计划了,或者根本没人负责了都。

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