Skip to content
Advertisement

How to send link include id in email user in django?

please i need to help i send this lien http://127.0.0.1:8000/benevole/demande_participer/id:?/ in email user but id is not Read in email

Thanks in advance

JavaScript

—— this is views.py =>

JavaScript

—this is email_template.html

JavaScript

Advertisement

Answer

You need to pass the context to the render to string method, let’s say you want the participers id in the email link

views.py

JavaScript

——–email_template.html——-

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement