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

Change email subject prefix variable name in settings

Open alexkanavos opened this issue 1 year ago • 2 comments

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.py file regarding the name of EMAIL_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.

alexkanavos avatar Aug 05 '24 11:08 alexkanavos

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.

browniebroke avatar Aug 05 '24 19:08 browniebroke

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.

alexkanavos avatar Aug 05 '24 19:08 alexkanavos

Thanks!

browniebroke avatar Sep 17 '24 21:09 browniebroke