-
Notifications
You must be signed in to change notification settings - Fork 154
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 3.0.4 - cannot import name 'python_2_unicode_compatible' #128
Comments
Thank you for your issue. @mfonism might be working on fixing that. Not sure. If not, I'm happy to receive a PR from you to fix, if you are interested. |
Hi @dannyblaker, I've made plans to work on this issue (and other related issues) this weekend. But if you have a PR for it, or are already working on one, (or are even planning to work on one 🙈), please let @KatherineMichel know, so we can channel our efforts into fixing other issues. Thank you for your issue. |
@dannyblaker... a new release has been tagged and published. Thank you! https://pypi.org/project/pinax-blog/ |
Awesome! Many Thanks @KatherineMichel @mfonism & everyone :) |
Use - from six import python_2_unicode_compatible Instead of - from django.utils.encoding import python_2_unicode_compatible I hope it will solve the problem. |
import error installing with django 3.0.4:
cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding
Issue:
Django 3 has removed the
django.utils.encoding.python_2_unicode_compatible()
api.Solution:
in
blog\models.py
andimages\models.py
:replace:
from django.utils.encoding import python_2_unicode_compatible
with:
from six import python_2_unicode_compatible
🌻
The text was updated successfully, but these errors were encountered: