I am trying with django==1.8 and python==2.7 with these steps for configuring mangoDB
Django-nonrel
pip install git+https://github.com/django-nonrel/django@nonrel-1.5
djangotoolbox
pip install git+https://github.com/django-nonrel/djangotoolbox
Django MongoDB Engine You should use the latest Git revision.
pip install git+https://github.com/django-nonrel/mongodb-engine
and in settings.py adding configuration
DATABASES = {
'default' : {
'ENGINE' : 'django_mongodb_engine',
'NAME' : 'my_database'
}
}
but i am getting error when running python manage.py syncdb
ServerSelectionTimeoutError: 127.0.0.1:8086: [Errno 111] Connection refused
any help will be very helpful, thanks in advance
You have to install MongoDB, Django only provides the engine but not the database itself. Please follow the tutorial
https://docs.mongodb.org/v3.0/tutorial/install-mongodb-on-ubuntu/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.