changeset 154:87382593e514

fix EMAIL_BACKEND setting
author souliane <souliane@mailoo.org>
date Thu, 02 Nov 2017 23:48:18 +0100
parents d9adc73fcd12
children 58c032157bed
files deploy.sh settings/__init__.py settings/settings.py
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/deploy.sh	Mon Oct 30 23:59:14 2017 +0100
+++ b/deploy.sh	Thu Nov 02 23:48:18 2017 +0100
@@ -1,8 +1,9 @@
 #!/bin/bash
 
 hg pull -u
-chown -R www-data:www-data .
+#chown -R www-data:www-data .
 mkdir -p static
 ./manage.py collectstatic
 ./manage.py compilemessages
 ./manage.py migrate
+/etc/init.d/apache2 reload
--- 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'
--- a/settings/settings.py	Mon Oct 30 23:59:14 2017 +0100
+++ b/settings/settings.py	Thu Nov 02 23:48:18 2017 +0100
@@ -111,8 +111,5 @@
 
 # Email settings
 
-if DEBUG:
-    EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
-
 DEFAULT_FROM_EMAIL = u'contact@salut-a-toi.org'
 ADMINS = [("Salut à Toi", 'contact@salut-a-toi.org')]