问题
HTTP GET /admin/ 500 [0.00, 127.0.0.1:51425] Traceback (most recent call last): File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\daphne\http_protocol.py", line 180, in process "server": self.server_addr, ModuleNotFoundError: No module named 'django.utils.six'
Installed Django 3. Django.utils.six is no longer supported. Thoughts?
回答1:
Django 3 has removed support for six
, from the release notes:
While Python 2 support was removed in Django 2.0, some private APIs weren’t removed from Django so that third party apps could continue using them until the Python 2 end-of-life.
Since we expect apps to drop Python 2 compatibility when adding support for Django 3.0, we’re removing these APIs at this time.
...
django.utils.six - Remove usage of this vendored library or switch to six.
来源:https://stackoverflow.com/questions/59524941/modulenotfounderror-no-module-named-django-utils-six