Django always connects to localhost mongodb
问题 I have followed the guide of db connection config: https://nesdis.github.io/djongo/database-configuration/ However, it always connects to localhost one, not my setting's one. Does anyone have any idea on this issue? my packages versions: Django 2.0 django-cors-headers 2.4.0 django-rest-auth 0.9.3 djangorestframework 3.9.0 djongo 1.1 mongoengine 0.16.3 pip 10.0.1 pymongo 3.7.2 urllib3 1.24.1 my settings DATABASES = { 'default': { 'ENGINE': 'djongo', 'NAME': 'test_db', 'HOST': 'somewhere.com',