changed URLPREFIX in sendmails command
This commit is contained in:
parent
f9625a051d
commit
c39d2b3146
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue