question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Django 3 compatability

See original GitHub issue

Django 3 has dropped support for Python 2 and therefore removed Python 2 compatability API.

So now import errors are produced. ImportError: cannot import name 'python_2_unicode_compatible' from 'django.utils.encoding'

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

2reactions
nikomoncommented, Mar 4, 2020

It was moved to django.utils.six but later moved to it’s own library.

from six import python_2_unicode_compatible
1reaction
Some1Somewherecommented, Aug 14, 2020

#147 Pull request set up to fix this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Porting to Python 3 | Django documentation
Django 1.5 is the first version of Django to support Python 3. The same code runs both on Python 2 (≥ 2.6.5) and...
Read more >
python 3.x - Django 3 vs Django 2 - Stack Overflow
No Django version is fully compatible with the previous one. In the release notes you can see what has changed. – Willem Van...
Read more >
What's new in Django 3.2 LTS - TheOrangeOne
The new change in Django 3.2 is that you can configure which field Django automatically attaches to models without a primary key. The...
Read more >
Changelog — django-configurations 2.4 documentation
Add compatibility with Django 4.1. BACKWARD INCOMPATIBLE Drop compatibility for Django < 3.2 ... Replace django.utils.six with six to support Django >= 3....
Read more >
django-filter - PyPI
Support for Python and Django versions will be dropped when they reach end-of-life. Support for Python versions will dropped when they reach end-of-life,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found