I just upgraded Django from 1.7.1 to 1.9.2. When I start the server, I get:
from django.utils import importlib ImportError: cannot import name 'importlib'
I noticed that /lib/python3.4/site-packages/django/utilsthere is no file inside importlib.py, as it was in the previous version. Has anyone fixed this issue?
/lib/python3.4/site-packages/django/utils
importlib.py
django.utils.importlibwas deprecated in Django 1.7 and removed in Django 1.9. Change your import:
django.utils.importlib
from django.utils import importlib
to
import importlib
Django, , . 1,7 1,8, 1,8 1,9, , , Django 1.8 , .
Source: https://habr.com/ru/post/1628369/More articles:Create a custom Swift iOS 9 keyboard using CollectionView and CollectionViewCells - iosПрокси-сервер Nginx websocket отключается через 2 минуты - proxyWhy does the setx path not work? - windowsFortran OpenMP with routines and functions - thread-safetyHow to pass more than one parameter to the onChange action for a select element in Ember2.3 - ember.jsIs there an easy way to prepare Fortran code for a parallel call - memory-managementVariable results are summarized using dplyr, depending on the name variable - rWhy types cannot be selected for nested functions - typesember 2 in action selection menu - javascriptBootstrapping options - jqueryAll Articles