From c39d2b3146e31559f229d98c3122d23e39191149 Mon Sep 17 00:00:00 2001 From: Benni Baermann Date: Mon, 16 Nov 2020 12:02:50 +0100 Subject: [PATCH] changed URLPREFIX in sendmails command --- input/management/commands/sendmails.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/management/commands/sendmails.py b/input/management/commands/sendmails.py index 8bce578..621af6a 100644 --- a/input/management/commands/sendmails.py +++ b/input/management/commands/sendmails.py @@ -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),