Skip to content
Snippets Groups Projects

Resolve "Provide base templates for e-mails generated by apps"

All threads resolved!
5 files
+ 68
94
Compare changes
  • Side-by-side
  • Inline
Files
5
{% extends "templated_email/base.email" %}
{% load i18n %}
{% extends "base.html" %}
{% block subject %}
{% blocktrans with task_name=task_name%} Celery task {{ task_name }} failed!{% endblocktrans %}
{% endblock %}
{% block plain %}
{% blocktrans with task_name=task_name %}
the celery task {{ task_name }} failed with following information:
{% endblocktrans %}
{% block subject_content %}{% blocktrans with task_name=task_name %}Celery task {{ task_name }} failed!{% endblocktrans %}{% endblock %}
{% block plain_content %}
{% blocktrans with task_name=task_name %}the celery task {{ task_name }} failed with following information:{% endblocktrans %}
{% blocktrans with task_name=task_name task=task task_id=task_id exception=exception args=args kwargs=kwargs traceback=traceback %}
* Task name: {{task_name}}
* Task: {{task}}
* Id of the task: {{task_id}}
* Exception instance raised: {{ exception }}
* Positional arguments the task was called with: {{ args }}
* Keyword arguments the task was called with: {{ kwargs }}
* Stack trace object: {{ traceback }}
{% endblocktrans %}
{% endblock %}
* {% trans "Task" %}: {{ task_name }}
* {% trans "Task ID" %}: {{ task_id }}
* {% trans "Raised exception" %}: {{ exception }}
* {% trans "Positional arguments" %}:
{% for arg in args %}- {{ arg }}
{% endfor %}
* {% trans "Keyword arguments" %}:
{% for key, value in kwargs.items %}- {{ key }}: {{ value }}
{% endfor %}
{{ traceback }}{% endblock %}
{% block html_content %}
<p>
{% blocktrans with task_name=task_name %}
the celery task {{ task_name }} failed with following information:
{% endblocktrans %}
</p>
{% block html %}
<p>
{% blocktrans with task_name=task_name %}
the celery task {{ task_name }} failed with following information:
{% endblocktrans %}
</p>
<ul>
<li>{% trans "Task" %}: {{ task_name }}</li>
<li>{% trans "Task ID" %}: {{ task_id }}</li>
<li>{% trans "Raised exception" %}: {{ exception }}</li>
<li>{% trans "Positional arguments" %}:
<ol>
{% for arg in args %}
<li>{{ arg }}</li>
{% endfor %}
</ol>
</li>
<li>{% trans "Keyword arguments" %}:
<ul>
{% for key, value in kwargs.items %}
<li>{{ key }}: {{ value }}</li>
{% endfor %}
</ul>
</li>
</ul>
<ul>
{% blocktrans with task_name=task_name task=task task_id=task_id exception=exception args=args kwargs=kwargs traceback=traceback %}
<li>Task name: {{task_name}}</li>
<li>Task: {{task}}</li>
<li>Id of the task: {{task_id}}</li>
<li>Exception instance raised: {{ exception }}</li>
<li>Positional arguments the task was called with: {{ args }}</li>
<li>Keyword arguments the task was called with: {{ kwargs }}</li>
<li>Stack trace object: {{ traceback }}</li>
</ul>
{% endblocktrans %}
<code>
{{ traceback|linebreaksbr }}
</code>
{% endblock %}
Loading