Deploy changes

This commit is contained in:
Martin Bauer 2014-06-22 14:59:40 +02:00
parent a8e6ca89fd
commit 8a160a0a74
4 changed files with 10 additions and 12 deletions

View File

@ -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

View File

@ -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')

View File

@ -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'

View File

@ -5,5 +5,5 @@ Neuer Forumeintrag von {{ messages.0.author.username }}:
Im Forum antworten:
http://bauer1.selfip.com/messages
https://blechreiz.bauer.technology/messages