-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use the console email backend by default, which is good for local tes…
…ting, or sparkpost if a setting is set fixes #144
- Loading branch information
Showing
3 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,10 +63,8 @@ | |
CSRF_COOKIE_SECURE = not DEBUG # similarly | ||
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' # needed by openid login | ||
|
||
EMAIL_HOST = 'localhost' | ||
EMAIL_PORT = 587 | ||
#EMAIL_HOST_USER = '' | ||
#EMAIL_HOST_PASSWORD = '' | ||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
EMAIL_SUBJECT_PREFIX = '[GovTrack] ' | ||
|
||
# List of callables that know how to import templates from various sources. | ||
TEMPLATE_LOADERS = ( | ||
|
@@ -170,9 +168,6 @@ | |
EMAIL_UPDATES_RETURN_PATH = "GovTrack.us Email Updates <bounces+uid=%[email protected]>" | ||
BOUNCES_UID_REGEX = re.compile(r"<?bounces\+uid=(\d+)@GovTrack\.us>?", re.I) | ||
|
||
#if DEBUG: # sometimes we debug in a live environment | ||
# EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' | ||
|
||
# Load settings from the environment | ||
from settings_env import * | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters