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 setti
Have you edited your setting in the settings.py file
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'XXXX', 'USER': 'XXX', 'PASSWORD': 'XXXX', 'HOST': 'XXX.XXX.XXX.XXX', 'PORT': '3306', 'OPTION': { 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'" } } }