[damned-lies] Moved the EMAIL_BACKEND definition after locale_settings import
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Moved the EMAIL_BACKEND definition after locale_settings import
- Date: Sat, 29 Aug 2015 11:57:42 +0000 (UTC)
commit fedbf0008232e5cf2710ec7ca88fa63d1b947a93
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Aug 29 13:56:52 2015 +0200
Moved the EMAIL_BACKEND definition after locale_settings import
damnedlies/settings.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/damnedlies/settings.py b/damnedlies/settings.py
index 7821b13..64d2be1 100644
--- a/damnedlies/settings.py
+++ b/damnedlies/settings.py
@@ -27,11 +27,6 @@ DATABASES = {
}
# Please refer to the README file to create an UTF-8 database with MySQL.
-# When running in development mode, print emails on stdout instead of trying
-# to send them
-if DEBUG:
- EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
-
EMAIL_HOST = 'localhost'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
@@ -160,6 +155,11 @@ try:
except ImportError:
pass
+# When running in development mode, print emails on stdout instead of trying
+# to send them
+if DEBUG:
+ EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
+
if USE_DEBUG_TOOLBAR:
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar',)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]