Skip to content

Commit

Permalink
fix(email-url): fix email url parsing and modify default email user
Browse files Browse the repository at this point in the history
  • Loading branch information
changchaishi committed Feb 24, 2024
1 parent 5589418 commit 5a0a65c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pycontw2016/settings/production/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@
'SentryResponseErrorIdMiddleware',
)

EMAIL_BACKEND = env.email_url()['EMAIL_BACKEND']
EMAIL_HOST = env.email_url()['EMAIL_HOST']
EMAIL_HOST_PASSWORD = env.email_url()['EMAIL_HOST_PASSWORD']
EMAIL_HOST_USER = env.email_url()['EMAIL_HOST_USER']
EMAIL_PORT = env.email_url()['EMAIL_PORT']
EMAIL_USE_TLS = env.email_url()['EMAIL_USE_TLS']
EMAIL_BACKEND = env.email_url().get('EMAIL_BACKEND')
EMAIL_HOST = env.email_url().get('EMAIL_HOST')
EMAIL_HOST_PASSWORD = env.email_url().get('EMAIL_HOST_PASSWORD')
EMAIL_HOST_USER = env.email_url().get('EMAIL_HOST_USER')
EMAIL_PORT = env.email_url().get('EMAIL_PORT')
EMAIL_USE_TLS = env.email_url().get('EMAIL_USE_TLS')

DEFAULT_FROM_EMAIL = SERVER_EMAIL = '{name} <{addr}>'.format(
name='PyCon Taiwan',
addr='web@pycon.tw',
addr='no-reply@python.tw',
)

# Securiy related settings
Expand Down

0 comments on commit 5a0a65c

Please sign in to comment.