Skip to content

Commit

Permalink
Remove sensitive url instead by example
Browse files Browse the repository at this point in the history
  • Loading branch information
erichuanggit committed Sep 7, 2015
1 parent e3fa32b commit cfb6b82
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
11 changes: 7 additions & 4 deletions pdc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,13 @@
# 'KEY_FILE': '',
}

# Send email configuration
ADMINS = (('PDC Dev', 'pnt-pdc@redhat.com'),)
EMAIL_HOST = 'smtp.corp.redhat.com'
SERVER_EMAIL = 'noreply@redhat.com'
# ======== Email configuration =========
# Email addresses who would like to receive email
ADMINS = (('PDC Dev', 'pdc@example.com'),)
# Email SMTP HOST configuration
EMAIL_HOST = 'smtp.example.com'
# Email sender's address
SERVER_EMAIL = 'noreply@example.com'
EMAIL_SUBJECT_PREFIX = '[PDC]'

LOGGING = {
Expand Down
11 changes: 10 additions & 1 deletion pdc/settings_local.py.dist
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,16 @@ def get_setting(setting):
import settings
return getattr(settings, setting)

# un-comment below 4 lines if enable email notification as meet any error log
# ======== Email configuration =========
# Email addresses who would like to receive email
ADMINS = (('PDC Dev', 'pdc@example.com'),)
# Email SMTP HOST configuration
EMAIL_HOST = 'smtp.example.com'
# Email sender's address
SERVER_EMAIL = 'noreply@example.com'
EMAIL_SUBJECT_PREFIX = '[PDC]'

# un-comment below 4 lines if enable email notification as meet any error
# get_setting('LOGGING').get('loggers').update({'pdc.apps.common.handlers': {
# 'handlers': ['mail_admins'],
# 'level': 'ERROR',
Expand Down

0 comments on commit cfb6b82

Please sign in to comment.