django-shop icon indicating copy to clipboard operation
django-shop copied to clipboard

Error sending email about the purchase

Open stilet opened this issue 5 years ago • 7 comments

TemplateSyntaxError: 'html_email' is not a registered tag library.

stilet avatar Jun 08 '19 08:06 stilet

Which version of django-SHOP and django-post_office are you using? Check your settings, you should have

POST_OFFICE = {
    'TEMPLATE_ENGINE': 'post_office',
}

jrief avatar Jun 08 '19 10:06 jrief

django-post-office==3.2.1 django-shop==1.0.2

POST_OFFICE = {
    'TEMPLATE_ENGINE': 'post_office',
}

POST_OFFICE is in settings

stilet avatar Jun 08 '19 14:06 stilet

I checked post-office templatetags - there is no such tag html_email

stilet avatar Jun 08 '19 14:06 stilet

It would be helpful to know, which template file is referring the templatetag html_email .

jrief avatar Jun 08 '19 14:06 jrief

project name = garantum garantum/garantum/templates/garantum/email/base.html

{% extends "shop/email/base.html" %}
{% load html_email %}

{% block email-logo %}
<img src="{% image_src 'garantum/django-shop-logo.png' %}" width="200" style="margin: 20px auto; display: block;" />
{% endblock %}
{% endcomment %}

stilet avatar Jun 08 '19 16:06 stilet

I would like to thank You for a wonderful project. I was able to launch the site in a couple of weeks. Sorry for bad English ) https://garantum.ru

stilet avatar Jun 08 '19 16:06 stilet

The template garantum/garantum/templates/garantum/email/base.htmlseem to be from your own project. So you must fix it there.

jrief avatar Jun 08 '19 17:06 jrief