ImportError: Nom ininterrompu execute_manager

J'installe Graphite sur Debian 9 Je suis ce guide

https://gist.github.com/xlson/1363542
Catalogue actuel

root@debian:/opt/graphite/webapp/graphite# pwd
/opt/graphite/webapp/graphite

erreur

root@debian:/opt/graphite/webapp/graphite# python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 2, in <module>
from django.core.management import execute_manager
ImportError: cannot import name execute_manager
root@debian:/opt/graphite/webapp/graphite#

Teneur manage.py

root@debian:/opt/graphite/webapp/graphite# more manage.py
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've
customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings
.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
sys.exit(1)

if __name__ == "__main__":
execute_manager(settings)

Version Python et Django

root@debian:/opt/graphite/webapp/graphite# python --version
Python 2.7.13
root@debian:/opt/graphite/webapp/graphite# django-admin --version
1.10.7
root@debian:/opt/graphite/webapp/graphite#

Version Debian

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.12 (stretch)
Release: 9.12
Codename: stretch

Avoir des idées comment réparer cette erreur?
</module>
Invité:

Pour répondre aux questions, connectez-vous ou registre