-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #346 from devinit/fix/logging
Disable allowed host logging
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -205,6 +205,23 @@ | |
EMAIL_HOST_USER = '[email protected]' | ||
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', '') | ||
|
||
# Disable allowed host emails to admin | ||
LOGGING = { | ||
'version': 1, | ||
'disable_existing_loggers': False, | ||
'handlers': { | ||
'null': { | ||
'class': 'logging.NullHandler', | ||
}, | ||
}, | ||
'loggers': { | ||
'django.security.DisallowedHost': { | ||
'handlers': ['null'], | ||
'propagate': False, | ||
}, | ||
}, | ||
} | ||
|
||
try: | ||
from ddw_analyst_ui.local_settings import DATABASES, SECRET_KEY | ||
except ImportError: | ||
|