mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
Added email sending settings
This commit is contained in:
13
settings.py
13
settings.py
@@ -214,7 +214,7 @@ LOGGING = {
|
||||
'disable_existing_loggers': True,
|
||||
'formatters': {
|
||||
'standard': {
|
||||
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
|
||||
'format': '%(asctime)s [%(levelname)s] %(name)s:%(lineno)s %(funcName)s %(message)s'
|
||||
},
|
||||
},
|
||||
'handlers': {
|
||||
@@ -251,6 +251,17 @@ LOGGING = {
|
||||
}
|
||||
}
|
||||
|
||||
#################
|
||||
# Email sending #
|
||||
#################
|
||||
|
||||
SEND_EMAIL_ON_ADDING_SYSTEM_MEMBER = True # Whether to send email when a system staff adding new member.
|
||||
SEND_EMAIL_ON_RESETTING_USER_PASSWD = True # Whether to send email when a system staff resetting user's password.
|
||||
|
||||
#####################
|
||||
# External settings #
|
||||
#####################
|
||||
|
||||
def load_local_settings(module):
|
||||
'''Import any symbols that begin with A-Z. Append to lists any symbols
|
||||
that begin with "EXTRA_".
|
||||
|
Reference in New Issue
Block a user