有两种方法可以解决这个问题 >>> from django.conf import settings >>> settings.DATABASES['def...