bread-and-pepper/django-userena — pull request #192 by jscherer26 (2012-05-03 02:57:30+00:00)
Title: Added userena.views.signout with messages.success

signin has a messages.success of 'You have been signed in.'
signout should have a messages.success of 'You have been signed out.'

I have my USERENA_REDIRECT_ON_SIGNOUT = '/' and I use messages to inform the user. I actually have a section on my base.html between my menu section and content section that automatically displays the messages if there are any, which greatly simplifies my code. I think this is a pretty common usage.

After reviewing django.contrib.auth.views.logout I figured it was best to check if the user was authenticated and USERENA_USE_MESSAGES was true to just add the message.success and let django.contrib.auth.logout do its thing.

Great project. Like most things I started out with a lot of code and complication and ended up with something very simple. At this point it seems almost seems trivial, but it simplifies and unifies userena.urls a bit and address something I see as common usage without breaking anything.