@secure_required
def signout(request, next_page=userena_settings.USERENA_REDIRECT_ON_SIGNOUT, template_name='userena/signout.html', *args, **kwargs):
 if (request.user.is_authenticated() and userena_settings.USERENA_USE_MESSAGES):
  messages.success(request, _('You have been signed out.'), fail_silently=True)
 userena_signals.account_signout.send(sender=None, user=request.user)
 return Signout(request, next_page, template_name, *args, **kwargs)

@ secure_required def signout ( request , next_page = userena_settings . USERENA_REDIRECT_ON_SIGNOUT , template_name = 'userena/signout.html' , * args , ** kwargs ) : if ( request . user . is_authenticated ( ) and userena_settings . USERENA_USE_MESSAGES ) : messages . success ( request , _ ( 'You have been signed out.' ) , fail_silently = True ) userena_signals . account_signout . send ( sender = None , user = request . user ) return Signout ( request , next_page , template_name , * args , ** kwargs )
sign out .