Answer the question
In order to leave comments, you need to log in
Django-allauth how to change url in email confirmation email?
Hi friends. Used the django-allauth package for authorization in a django project.
The project is in a docker container (with the -p 8002:8001 option) on the server. When starting the container on the command line, I execute the command python manage.py runserver 0.0.0.0:8001. In the admin panel, I specify the site domain.
The problem is that django-allauth sends a confirmation email like -
http://127.0.0.1:8002/accounts/confirm-email/MQ:1hjJgA:XFqIW130fMBQ5_blim_KVxYsVXg/.
http://mysite.com/accounts/confirm-email/MQ:1hjJgA:XFqIW130fMBQ5_blim_KVxYsVXg
. Does anyone know how to solve this issue?
Answer the question
In order to leave comments, you need to log in
The documentation says:
If the documentation does not help, look in the source code for how {{ activate_url }} is formed and where the domain comes from in it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question