I made these setting on settings.py
, as directed on Getting Started:
NEOMODEL_NEO4J_BOLT_URL = os.environ.get('NEO4J_BOLT_URL', 'bolt://neo4j:password@localhost:7687')
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_neomodel',
'utils'
]
But I only get this error with python manage.py install_labels
:
neo4j.exceptions.ServiceUnavailable: [SSLCertVerificationError] Connection Failed. Please ensure that your database is listening on the correct host and port and that you have enabled encryption if required. Note that the default encryption setting has changed in Neo4j 4.0. See the docs for more information. Failed to establish encrypted connection. (code 1: Operation not permitted)
I know the database and neomodel are ok, because neomodel_install_labels models.py --db bolt://neo4j:password@localhost:7687
works perfectly and creates the nodes on the database.
I don't know where I can look for the source of this exception.