When i follow the simple django neomodel tutorial, i encounter this error when running the following command:
python manage.py install_labels
File "C:\Users\xxxx\AppData\Local\Continuum\anaconda3\lib\ssl.py", line 1139,
in do_handshake self._sslobj.do_handshake()
OSError: [Errno 0] Error
I've the latest versions of both neo4j and python installed.
I found somebody else with the same issue, however it hasn't been solved for him/her as well. If somebody could help me out, it would be highly appreciated.
Thanks a lot! This resolved the issue. Now it results in another internal server error when I open the view in which I request data from the neo4j database in my locally hosted django website:
TypeError: join() argument must be str or bytes, not 'WSGIRequest'
This keeps the issue alive that I'm not able to connect neo4j and django.If anyone could help me out, would be great!
@fhol I've encountered the same error but I'm not using Django - just straight python - but I came across your message on my travels around the internet and thought you may benefit from what I found.
On the neomodel documentation it suggests - "handy for development" - to use this configuration param:
import os
from neomodel import config
config.ENCRYPTED_CONNECTION = False
config.DATABASE_URL = 'bolt://neo4j:mypassword@localhost:7687'
config.MAX_POOL_SIZE = 50
INSTALLED_APPS = [
'all my apps'
'django_neomodel',
]
I also installed openjdk 14.0.1. because I read it was necessary and my OS is windows 10.
Maybe it's because I'm new to neo4j, but I find there is a lot of documentation however it is a bit fragmanted as each tutorial/instruction covers a bit, but I can't find a full instruction of what to do to connect your django application with a neo4j database. Again, it would be great if someone could help me out.
python manage.py install_labels works, but when I use the model in a view and visit http://127.0.0.1:8000/ to watch the data in the model I get the error again:
TypeError: join() argument must be str or bytes, not 'WSGIRequest'