Skip to content

Commit

Permalink
[#2643] Bring back db_backend for old autoemails module
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed May 18, 2024
1 parent bfe1962 commit fb1cbc1
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,25 @@
"string_if_invalid": "XXX-unset-variable-XXX",
},
},
# backend used for reading templates from the database
# `autoemails` app backend used for reading templates from the database
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"NAME": "db_backend",
# not-allowed to fetch from disk
"DIRS": [],
"APP_DIRS": False,
"OPTIONS": {
"debug": False,
"loaders": [],
"context_processors": [
"django.template.context_processors.i18n",
"django.template.context_processors.tz",
],
# Warn about invalid template variables
"string_if_invalid": "XXX-unset-variable-XXX",
},
},
# `emails` app backend used for reading templates from the database
{
"BACKEND": "django.template.backends.jinja2.Jinja2",
"NAME": "email_jinja2_backend",
Expand Down

0 comments on commit fb1cbc1

Please sign in to comment.