def get_messages(request):
    if hasattr(request, '_messages'):
        return request._messages
    else:
        return []
Returns the message storage on the request if it exists, otherwise returns
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/messages/api.py/get_messages