I'm using the app django-userena to manage user accounts. I have it working, and can enable users to sign up, and they then receive an email to verify their account. However, I'm having difficulty figuring our where to change the base url, so that the email does not use example.com
. For example, the email currently says:
Thank you for signing up at example.com.
To activate your account you should click on the link below:
http://example.com/accounts/activate/14bd7b230525224b6bfd71ca4efd531d4694f857/
Thanks for using our site!
Sincerely, example.com
I understand that this is generated from the following template:
{% load i18n %}{% autoescape off %}{% load url from future %}
{% if not without_usernames %}{% blocktrans with user.username as username %}Dear {{ username }},{% endblocktrans %}
{% endif %}
{% blocktrans with site.name as site %}Thank you for signing up at {{ site }}.{% endblocktrans %}
{% trans "To activate your account you should click on the link below:" %}
{{ protocol }}://{{ site.domain }}{% url 'userena_activate' activation_key %}
{% trans "Thanks for using our site!" %}
{% trans "Sincerely" %},
{{ site.name }}
{% endautoescape %}
However, I can't figure out where example.com
is set - I've tried searching and looked through each file that has this, and I can't locate where I should (or if I should) be setting the url somewhere.
This is probably set in the Django Sites framework. You should be able to edit the value through the admin or directly in the database.