Skip to content
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

Email templates #92

Open
tiago-peres opened this issue Apr 20, 2020 · 5 comments
Open

Email templates #92

tiago-peres opened this issue Apr 20, 2020 · 5 comments
Assignees

Comments

@tiago-peres
Copy link

Would be great to have one example at least of the email templates.

@tiago-peres
Copy link
Author

For instances

{% load i18n %}{% blocktrans %}Hello!

You're receiving this e-mail because you or someone else has requested a password for your user account.
It can be safely ignored if you did not request a password reset. Click the link below to get the token.{% endblocktrans %}

{{ reset_password_url }}

Then, if you go to /test_app/reset-password/confirm/, you can paste the token and the new password.

{% if email %}{% blocktrans %}In case you forgot, your email is {{ email }}.{% endblocktrans %}

{% endif %}{% blocktrans %}Have a great day!
{% endblocktrans %}

@ghost ghost assigned ghost and anx-cbenke and unassigned ghost Jul 30, 2020
@anx-cbenke
Copy link
Contributor

Thank you for your comment. Yes, that surely would be helpful for new users! However, the template belongs to the users project tree, the template-example should be mentionend in the readme in the email-section. Can you create a pull request for your example, so we can add it to the repository?

To do this, first you have to fork our repo and create a new branch. Then add your example-template to the README.md under the subsection "Example for sending an e-mail". Next, you start a pull-request from your repo to our (upstream) repo via the github-interface, see this guide for more information: https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork

Let me know if you need help with this!

@ChristianKreuzberger
Copy link
Collaborator

I think this could go hand in hand with #103 (Creating an example project).

I believe it would be easier to have a full example project (with templates, etc...) as a separate repository and just link to this project.

@sunilsarode
Copy link

I have some questions. from the email template what I have understood is we have to provide two links in the email. One is to generate the token One is to add the token and a new password to reset the password. if yes I am right? then it is not better to just send the token to the user on his email and provide only the link to reset the password? Please let me know thanks

@ghost
Copy link

ghost commented May 27, 2021

Quick question, where should the templates live? I placed them in the template folder in the main directory (where asgi.py and url files are) and it couldnt find them. However it only searched other 3rd party packages as can be seen here:
image
Any advice would be super helpful. For reference there are no other templates in this project because of a React Frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants