This is a clone of http://code.larlet.fr/django-invitation.  I'm modifying it to add support for using django-allauth as an optional alternative to django-registration.