Django registration with confirmation email

When we signup on website its send a email for confirmation to active an account. Or sometime need to change password or change email of an account.

Here i will show you how to send a confirmation email when someone register on your web app that deploy on Django.

I will discuss about the normal way to deploy this. But there other option also to deploy this. Like django-registration, django-registration-redux, django-allauth application. Those application made this very easy, also integrated with authentication, account management, social account authentication etc.

Added this activate function after signup function in blog/views.py file. This function will check token if it valid then user will active and login. Notice that i have write user.is_active=True. Before confirming email this was False.