diff settings/__init__.py @ 154:87382593e514

fix EMAIL_BACKEND setting
author souliane <souliane@mailoo.org>
date Thu, 02 Nov 2017 23:48:18 +0100
parents b1c16cd53b62
children
line wrap: on
line diff
--- a/settings/__init__.py	Mon Oct 30 23:59:14 2017 +0100
+++ b/settings/__init__.py	Thu Nov 02 23:48:18 2017 +0100
@@ -10,3 +10,6 @@
     from .actual_stats import *  # @UnusedWildImport
 except ImportError:
     pass
+
+if DEBUG:
+    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'