Question

in my django app I am using django-registration app. I was testing registration few months ago and it worked fine. I have not editing nothin in django-registration since then, but somehow it's not working anymore. Well registration mail does not contain proper link:

Someone, hopefully you, signed up for a new account at domain.com using this email address. If it was you, and you'd like to activate and use your account, click the link below or copy and paste it into your web browser's address bar:

:///accounts/activate/3789be99f7426ab3e332d252900479b59a400d45/

If you didn't request this, you don't need to do anything; you won't receive any more email from us, and the account will expire automatically in seven days.

This is my activation_email.txt

{% load humanize %}
Someone, hopefully you, signed up for a new account at domain.com using this email address. If it was you, and you'd like to activate and use your account, click the link below or copy and paste it into your web browser's address bar:

{{ protocol }}://{{ domain }}/accounts/activate/{{ activation_key }}/

If you didn't request this, you don't need to do anything; you won't receive any more email from us, and the account will expire automatically in {{ expiration_days|apnumber }} days.

So protocol and domain variable is not passed. Where should I set them?

Was it helpful?

Solution

I think django-registration takes information about domain from django-site table -- you should check domain field in that table or edit it through admin page.

You can read about sites framework here: https://docs.djangoproject.com/en/dev/ref/contrib/sites/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top