email sender read from environment

This commit is contained in:
Serghei Mihai 2014-10-15 16:49:02 +02:00
parent 929df7e55f
commit 559bdbee13
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ LOGGING = {
}
}
DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', 'ne-pas-repondre@orleans.fr')
INVOICES_DIR = os.environ.get('INVOICES_DIR', os.path.dirname(__file__))
INVOICES_LOCATION_PATTERN = os.path.join(INVOICES_DIR, 'facture_{invoice_id}.pdf')
INVOICES_NOTIFICATION_TIMEOUT = os.environ.get('INVOICES_NOTIFICATION_TIMEOUT', 10) # in days