def signup_verify(request, uidb36=None, token=None):
 user = authenticate(uidb36=uidb36, token=token, is_active=False)
 if (user is not None):
  user.is_active = True
  user.save()
  auth_login(request, user)
  info(request, _(u'Successfully signed up'))
  return login_redirect(request)
 else:
  error(request, _(u'The link you clicked is no longer valid.'))
  return redirect(u'/')

def signup_verify ( request , uidb36 = None , token = None ) : user = authenticate ( uidb36 = uidb36 , token = token , is_active = False ) if ( user is not None ) : user . is_active = True user . save ( ) auth_login ( request , user ) info ( request , _ ( u'Successfully signed up' ) ) return login_redirect ( request ) else : error ( request , _ ( u'The link you clicked is no longer valid.' ) ) return redirect ( u'/' )
view for the link in the verification email sent to a new user when they create an account and accounts_verification_required is set to true .