added console logging to settings.py