changed URLPREFIX in sendmails command

This commit is contained in:
Benni Bärmann 2020-11-16 12:02:50 +01:00
parent f9625a051d
commit c39d2b3146
1 changed files with 2 additions and 2 deletions

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),