Browse Source

changed URLPREFIX in sendmails command

master
Benni Baermann 4 years ago
parent
commit
c39d2b3146
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      input/management/commands/sendmails.py

+ 2
- 2
input/management/commands/sendmails.py View File

@ -7,7 +7,7 @@ from django.core.mail import send_mail, BadHeaderError
from input.models import Project, Library, HonoraryCertificate, Travel, Email,\
BusinessCard, List, IFG, Literature
from input.settings import URLPREFIX, IF_EMAIL, SURVEYPREFIX
from input.settings import IF_EMAIL, SURVEYPREFIX
class Command(BaseCommand):
''' mails will be send here:
@ -54,7 +54,7 @@ class Command(BaseCommand):
mail_template = get_template('input/if_end_of_project.txt')
for project in old:
context = {'project': project}
context['URLPREFIX'] = URLPREFIX
context['URLPREFIX'] = settings.URLPREFIX
try:
send_mail('Projektende erreicht',
mail_template.render(context),

Loading…
Cancel
Save