Search code examples
pythondjangoauthenticationdjango-registration

Django - authentication, registration with email confirmation


I'm looking at the API for authentication

https://docs.djangoproject.com/en/1.3/topics/auth/

I can't seem to find information on simple user registration form that would send confirmation email as it is the usual way on web sites.

I guess I could do this:

1) Display a form 2) User enters info and submits 3) Save user as inactive, with a confirmation code 4) Send a link with confirmation code 5) User clicks a confirmation link and becomes active

It doesn't seem that difficult but I have a feeling this might be done already, and also there are quite a few edge cases that would need to be considered.


Solution

  • It's not built into Django. There is a reusable app called django-allauth, which will fit your needs.

    An app called django-registration used to be recommended, but that is now unmaintained and out of date.

    Editor note: django-registration is not unmaintained as of December 2016.