From 8a160a0a74eb5366b3ecff54362c2aa514db1c7d Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Sun, 22 Jun 2014 14:59:40 +0200 Subject: [PATCH] Deploy changes --- blechreiz/settings.py | 8 ++++---- blechreiz/wsgi.py | 5 +++-- simpleforum/models.py | 7 ++----- simpleforum/templates/simpleforum/mail.txt | 2 +- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/blechreiz/settings.py b/blechreiz/settings.py index cfb4491..7d0bacd 100644 --- a/blechreiz/settings.py +++ b/blechreiz/settings.py @@ -26,10 +26,10 @@ DATABASES = { # Email -EMAIL_HOST='smtp.gmail.com' -EMAIL_HOST_USER='martinbauer86@gmail.com' -EMAIL_HOST_PASSWORD='' -EMAIL_USE_TLS=True +EMAIL_HOST='smtp.blechreiz.com' +EMAIL_HOST_USER='m02b721a' +EMAIL_HOST_PASSWORD='9Hp4WG5bZ2WVPX5z' +EMAIL_USE_TLS=False # Hosts/domain names that are valid for this site; required if DEBUG is False diff --git a/blechreiz/wsgi.py b/blechreiz/wsgi.py index aa70e7b..247bbb7 100644 --- a/blechreiz/wsgi.py +++ b/blechreiz/wsgi.py @@ -15,10 +15,11 @@ framework. """ import os +# Own stuff to deploy on blechreiz.bauer.technology import site import sys -site.addsitedir('/srv/test/env/lib/python2.7/site-packages') -sys.path.append('/srv/test') +site.addsitedir('/srv/blechreiz/env/lib/python2.7/site-packages') +sys.path.append('/srv/blechreiz') diff --git a/simpleforum/models.py b/simpleforum/models.py index 9c20ba2..7fca8f5 100644 --- a/simpleforum/models.py +++ b/simpleforum/models.py @@ -3,7 +3,6 @@ from django.utils.translation import ugettext as _ from django.contrib.auth.models import User - class Message ( models.Model ): titel = models.CharField( max_length = 100, verbose_name = _("titel") ) @@ -24,7 +23,7 @@ from django.dispatch import receiver from django.core.mail import EmailMultiAlternatives -#from musicians.models import Musician +from musicians.models import Musician from django.template.loader import get_template @@ -35,9 +34,7 @@ def my_handler(sender, instance, created, **kwargs): if not created: return - #receivers = [ m.user.email for m in Musician.objects.all() ] - # overwrite only to me for now - receivers = [ 'forum@blechreiz.com' ] + receivers = [ m.user.email for m in Musician.objects.all() ] subject = "Blechreiz Forum: " + instance.titel from_email = 'forum@blechreiz.com' diff --git a/simpleforum/templates/simpleforum/mail.txt b/simpleforum/templates/simpleforum/mail.txt index d614c79..4bcb00f 100644 --- a/simpleforum/templates/simpleforum/mail.txt +++ b/simpleforum/templates/simpleforum/mail.txt @@ -5,5 +5,5 @@ Neuer Forumeintrag von {{ messages.0.author.username }}: Im Forum antworten: - http://bauer1.selfip.com/messages + https://blechreiz.bauer.technology/messages