Manifestement, cela venait du fait que j'installais les paquets en root. En passant par un environnement virtuel, c'est bon. Par contre, au moment de lancer python manage.py migrate
, j'obtiens :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32 | (zdsenv)vayel:~/workspace/zds-site (dev) $ python manage.py migrate
/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/six.py:808: RemovedInDjango110Warning: SubfieldBase has been deprecated. Use Field.from_db_value instead.
return meta(name, bases, d)
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
utility.execute()
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
django.setup()
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/django/apps/registry.py", line 115, in populate
app_config.ready()
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/apps.py", line 15, in ready
dt_settings.patch_all()
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/settings.py", line 231, in patch_all
patch_middleware_classes()
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/settings.py", line 210, in patch_middleware_classes
if not is_toolbar_middleware_installed():
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/settings.py", line 190, in is_toolbar_middleware_installed
from debug_toolbar.middleware import DebugToolbarMiddleware
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/middleware.py", line 14, in <module>
from debug_toolbar.toolbar import DebugToolbar
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/toolbar.py", line 160, in <module>
urlpatterns = DebugToolbar.get_urls()
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/toolbar.py", line 154, in get_urls
for panel_class in cls.get_panel_classes():
File "/home/ubuntu/workspace/zds-site/zdsenv/local/lib/python2.7/site-packages/debug_toolbar/toolbar.py", line 131, in get_panel_classes
(panel_module, e))
django.core.exceptions.ImproperlyConfigured: Error importing debug panel debug_toolbar.panels.versions: "cannot import name linebreak_iter"
|
La doc à ce sujet : https://docs.djangoproject.com/en/1.9/ref/exceptions/#improperlyconfigured
Merci.