|
|
@ -31,6 +31,8 @@ class Command(BaseCommand): |
|
|
|
mail_template = get_template('input/if_end_of_project.txt') |
|
|
|
for project in old: |
|
|
|
context = {'project': project} |
|
|
|
context['URLPREFIX'] = URLPREFIX |
|
|
|
print(context) |
|
|
|
try: |
|
|
|
send_mail('Projektende erreicht', |
|
|
|
mail_template.render(context), |
|
|
@ -40,5 +42,4 @@ class Command(BaseCommand): |
|
|
|
except BadHeaderError: |
|
|
|
return HttpResponse('Invalid header found.') |
|
|
|
|
|
|
|
|
|
|
|
self.stdout.write(self.style.SUCCESS('sendmails custom command executed')) |