Changeset 6dfcd66


Ignore:
Timestamp:
Mar 29, 2012, 4:32:11 AM (14 years ago)
Author:
MIT Association of Student Activities <asa@…>
Branches:
master, space-access, stable, stage
Children:
fb54faf
Parents:
05f5712
git-author:
Alex Dehnert <adehnert@…> (03/29/12 04:32:11)
git-committer:
MIT Association of Student Activities <asa@…> (03/29/12 04:32:11)
Message:

Use Django default email sender config

Baking in our own default is vaguely silly. See also
https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-DEFAULT_FROM_EMAIL

Location:
asadb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/settings.py

    r05f5712 r6dfcd66  
    1818)
    1919SERVER_EMAIL = 'asa-db-auto@mit.edu'
     20DEFAULT_FROM_EMAIL = 'asa-db@mit.edu'
    2021
    2122MANAGERS = ADMINS
  • asadb/util/emails.py

    r55ffcd1 r6dfcd66  
    44
    55def email_from_template(tmpl, context,
    6         subject, to=[], cc=[], from_email='asa-db@mit.edu', ):
     6        subject, to=[], cc=[], from_email=None, ):
    77    tmpl_obj = get_template(tmpl)
    88    ctx = Context(context)
Note: See TracChangeset for help on using the changeset viewer.