-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant overwrite the confirmation signup email subject. #2625
Comments
Watch https://youtu.be/dXZim_jgaiI?t=704 project_name/templates/account should be identical to this: https://github.com/pennersr/django-allauth/tree/master/allauth/templates/account project_name/templates/account/email should have this: https://github.com/pennersr/django-allauth/tree/master/allauth/templates/account/email Then you should be able to edit them. |
I tried copying everything into the templates folder, then I edit the "email_confirmation_signup_subject.txt", also tried "email_confirmation_subject.txt" and nothing is happening. It seems to work fine when I add the "email_confirmation_signup_message.html" template but not for the subject. |
I have the same problem... is there some update? |
IIRC it really depends on your project's settings.py for BASE_DIR and TEMPLATES settings. You need to tell your django settings to point to the templates folder inside of your project's directory and do not point to your virtual environment directory where all of your pip packages go. Here is an example:
This is where allauth templates get overridden: This is where project related apps live: This is where settings for the project lives: Otherwise, try going to your virtual environment directory and edit django-allauth directly where django-allauth was installed. It depends on what operating system you use the path of your installed pip packages. But maybe we should avoid overriding altogether and make it easy for people to change the subject directly from an allauth setting. |
Closing -- unlikely an issue in allauth. Take care of Django's template loading order, that might explain things. |
I was able to overwrite the HTML template by adding this to my templates folder:
account/email/email_confirmation_signup_message.html
But now I'm trying to overwrite the subject of the email by adding this:
account/email/email_confirmation_signup_subject.txt
But it doesn't do anything. I still get the same default subject
The text was updated successfully, but these errors were encountered: