Fix a bug that DATABASES is not declared in settings.py.