[Django]-Django-registration. The activation link sent is missing my app name

5👍

The activation email template includes

{{site}}/accounts/activate/{{ activation_key }}/

Firstly make sure you have your copy of templates for registration correct. Then make sure your SITE_ID in settings.py matches the site you created. The djangoproject.com site is probably default and has id 1. If you edited the name of it to match your site, the id will remain same, if you add a new one find the new id and set your SITE_ID to that.

site

An object representing the site on which the user registered;
depending on whether django.contrib.sites is installed, this may be an
instance of either django.contrib.sites.models.Site (if the sites
application is installed) or django.contrib.sites.models.RequestSite
(if not). Consult the documentation for the Django sites framework for
details regarding these objects’ interface

Leave a comment