cookiecutter-django
cookiecutter-django copied to clipboard
Change email subject prefix variable name in settings
Description
As I was working with cookiecutter django on a personal project I encountered an issue with one of the variables handling the email details.
- I've made a small change in
production.pyfile regarding the name ofEMAIL_SUBJECT_PREFIX. - I've NOT updated the documentation, because I didn't want to mess up the srt file (new var name was a bit long).
You can read more on this stackoverflow answer.
That will only work for accounts related email though? The current setting is for all emails sent by Django. Does Django-allauth has their own custom logic to send email? Seems a bit surprising that they wouldn't default to Django's setting.
In my project I used mailgun in production, but I tested with mailpit locally as well. I think is an allauth related variable and not a django one.
Thanks!